uni-app 判断浏览器是在普通浏览器中还是微信浏览器中

    技术2022-07-11  128

    uni-app 判断

    let ua = navigator.userAgent.toLowerCase(); if (ua.match(/MicroMessenger/i) == "micromessenger") { return '微信浏览器' }else{ return '普通浏览器' }
    Processed: 0.011, SQL: 10