摘要: 默认你使用了npm安装。 先执行安装fastclick的命令。 之后,在main.js中引入,并绑定到body package.json 阅读全文
posted @ 2017-11-16 14:20 潇影D 阅读(3483) 评论(0) 推荐(0) 编辑
摘要: 更改 build/utils.js 文件中 ExtractTextPlugin 插件的options 配置: 阅读全文
posted @ 2017-10-27 14:03 潇影D 阅读(362) 评论(0) 推荐(0) 编辑
摘要: var browser = { versions: function () { var u = navigator.userAgent, app = navigator.appVersion; return { //移动终端浏览器版本信息 trident: u.indexOf('Trident') > -1, //I... 阅读全文
posted @ 2017-10-12 15:02 潇影D 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 使用window.onhashchange方法 PS:适用于路由方法,可以解决按返回按钮页面不刷新的问题。 阅读全文
posted @ 2017-10-09 11:39 潇影D 阅读(5316) 评论(0) 推荐(0) 编辑
摘要: 1>jQuery插件支持的转换方式 2>浏览器支持的转换方式(Firefox,chrome,opera,safari,ie9,ie8)等浏览器: 注:ie8(兼容模式),ie7和ie6没有JSON对象,推荐采用JSON官方的方式,引入json.js。 3>Javascript支持的转换方式: 注:i 阅读全文
posted @ 2017-09-26 16:46 潇影D 阅读(581) 评论(0) 推荐(0) 编辑
摘要: Document 后退+刷新 阅读全文
posted @ 2017-09-26 16:42 潇影D 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Vue获取当前元素 按钮 阅读全文
posted @ 2017-09-20 11:17 潇影D 阅读(1615) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 6 自定义tap指令 7 8 9 10 11 按钮 12 13 14 62 63 阅读全文
posted @ 2017-09-20 11:13 潇影D 阅读(710) 评论(0) 推荐(0) 编辑
摘要: 'two' > 'three' // => true: 'tw'在字母表中的索引大于'th'。 方法:当将函数和对象合写在一起时,函数就变成了“方法”。 阅读全文
posted @ 2017-09-18 15:00 潇影D 阅读(143) 评论(0) 推荐(0) 编辑
摘要: width() height() innerWidth() innerHeight() outerWidth() outerHeight() 阅读全文
posted @ 2017-09-12 14:58 潇影D 阅读(188) 评论(0) 推荐(0) 编辑