獲取微信瀏覽器userAgent
廣告:
1. 獲取微信瀏覽器userAgent
document.write(navigator.userAgent.);
如:Mozilla/5.0 (Linux; Android 10; OCE-AN10 Build/HUAWEIOCE-AN10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.62 XWEB/2797 MMWEBSDK/20210501 Mobile Safari/537.36 MMWEBID/1147 MicroMessenger/8.0.6.1900(0x28000637) Process/toolsmp WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64
2. 瀏覽器調(diào)試工具(F12)
頂部添加自定義手機:edit -----devices------add custom device
device:weixin
user agent string:
Mozilla/5.0 (Linux; Android 10; OCE-AN10 Build/HUAWEIOCE-AN10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/78.0.3904.62 XWEB/2797 MMWEBSDK/20210501 Mobile Safari/537.36 MMWEBID/1147 MicroMessenger/8.0.6.1900(0x28000637) Process/toolsmp WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64
廣告: