js代码:
window.onload=function(){
if(isWeiXin()){
alert(1)
}
}
functionisWeiXin(){
varua=window.navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i) =='micromessenger'){
returntrue;
}else{
returnfalse;
}
}
js代码:
window.onload=function(){
if(isWeiXin()){
alert(1)
}
}
functionisWeiXin(){
varua=window.navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i) =='micromessenger'){
returntrue;
}else{
returnfalse;
}
}
本文标题:js判断是否是微信内置浏览器
本文链接:https://www.haomeiwen.com/subject/cxzbkxtx.html
网友评论