摘要: 在build/webpack .prod.conf.js文件里做以下修改 然后直接 npm run build 打包后 就可以看到dist文件里的js文件名带上时间戳 阅读全文
posted @ 2020-01-15 16:29 huihuihero 阅读(1809) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-01-15 15:32 huihuihero 阅读(282) 评论(0) 推荐(0) 编辑
摘要: ``` 或者 ``` 阅读全文
posted @ 2020-01-15 15:23 huihuihero 阅读(4533) 评论(0) 推荐(0) 编辑
摘要: ###ios端与安卓端的时间兼容问题 ####对于 2020-02-02 20:20:20 这种格式的时间 主要问题是:ios端不支持2020-02-02 20:20:20这种以-分割的时间格式。ios端仅支持2020/02/02 20:20:20这种以/分割的时间格式。而安卓端及pc端这两种格式的 阅读全文
posted @ 2020-01-15 15:00 huihuihero 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 问题及原因 解决办法 拓展 如果你还不懂,或者想了解更多: 直接看vue官方文档体验会更好:https://cn.vuejs.org/v2/guide/reactivity.html 看看博客解析也不错:https://www.cnblogs.com/thinkingthigh/p/7789108. 阅读全文
posted @ 2020-01-15 13:24 huihuihero 阅读(1551) 评论(0) 推荐(0) 编辑
摘要: ####倒计时代码(兼容ios) beforeDestroy(){ //页面销毁前清除定时器 clearInterval(this.countTimes) } methods:{ //方案一:先处理成ios和安卓均可转换的时间格式,再统一处理 timer(){ let u = navigator.u 阅读全文
posted @ 2020-01-15 11:07 huihuihero 阅读(1001) 评论(0) 推荐(0) 编辑