- 博客(4)
- 收藏
- 关注
转载 用roadhog打包时,解决react dva打包报错Unexpected token: operator (>)
是没解析出来es6语法package.json里对query-string降级(5.0.0版本以下)"query-string":"^5.0.0"转载于:https://www.cnblogs.com/muqing93/p/11471449.html
2019-09-06 10:34:00
1075
转载 判断是移动端还是pc端
写在html中:<script> //判断浏览器 window.isNavigators = function() { var theUA = window.navigator.userAgent.toLowerCase(); if ((theUA.match(/msie\s\d+/) &&...
2019-01-22 17:47:00
242
转载 js实现关闭当前页面
当页面首次打开时,浏览器认为是不安全的并不能直接关闭当前窗口。这不是bug,有解释的链接:https://stackoverflow.com/questions/25937212/window-close-doesnt-work-scripts-may-close-only-the-windows-that-were-openehttps://stackoverflow.com/...
2019-01-21 17:13:00
278
转载 移动端如果有时蒙层禁止页面滑动
一般pc端的方法对移动端不适用,于是增加了几个样式就成功禁止滑动.noscroll,.noscroll body { overflow: hidden; position: relative; top: 0; height: 100%;}有蒙层出现时$('html, body').addClass('noscroll');蒙层消失时$(...
2019-01-07 14:35:00
345
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人