![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信
yangxin_LZHH
这个作者很懒,什么都没留下…
展开
-
下载方法,移动端或者浏览器均可
window.downloadFile = function (sUrl) { //iOS devices do not support downloading. We have to inform user about this. if (/(iP)/g.test(navigator.userAgent)) { alert('Your device原创 2017-12-19 10:04:37 · 2755 阅读 · 1 评论 -
js 判断手机机型(例子为返回微信机型)
var VersionMobile = "";//手机版本号function is_weixin_bc() { if(is_weixin()) { return true; } else { return true; }}function is_weixin() { var ua = navigator.userAgent.t...原创 2018-09-21 15:01:47 · 4423 阅读 · 0 评论 -
微信浏览器禁掉上下滑动(必看)
最近用mui+vue做了一个公众号系统,mui-scroll 的滚动和 微信浏览器的上下滑动滑动冲突,会引起页面卡顿,无论怎么调整阻尼系数,问题依然存在,而且,比较坑爹。网络查了好久,各种阻止依然不可用,浪费太多时间,在突然的看了一篇文章里,在浏览器阻止滚动下方,加了个passive:false居然实现了我要的效果。虽然不明白为啥,但是很开心,分享给大家。 //阻止浏览器默认滑动 ...原创 2019-01-22 22:11:36 · 6730 阅读 · 3 评论