/** * 判断当前是否是微信环境 * @returns */ function isWeiXin() { var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i)=="micromessenger") { return true; } else { return false; } }
您现在的位置是:js判断是否微信环境
js判断是否微信环境
yuli09272019年09月03日 标签: JavaScript Weixin
Tips 分类: 浏览:179 标签: JavaScript Weixin
上一篇:js获取cookie值
下一篇:js时间戳转换
热门标签
随便看看
- json_encode中文转码\u的解决办法
- Linux检查网络并自动重启网卡
- 服务器ping监控脚本
- Linux增加新硬盘扩展VolGroup空间大小
- Linux挂载新硬盘
- Linux系统连接MSSQL
- extman提示Connection refused
- 微信昵称Emoji表情不能存数据解决办法
- 查看Linux网卡数据包
- 鼠标移上去出现显示层
- PHP获取文件创建时间、修改时间
- 常用正则表达式
- 到ICANN投诉三五互联获取域名转移密码成功
- CentOS 网卡报错 Determining if ip address x.x.x.x is already in use for device eth0
- [emerg] (43)Identifier removed: couldn't grab the accept mutex
鄂公网安备 42120202000209号 Copyright © 2012-2020 All Rights Reserved Powered By EMLOG
鄂ICP备12014936号-2