上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 29 下一页
摘要: 1、IE浏览器打开网站后显示空白,并报错:Error in created hook: "ReferenceError: “Promise”未定义" 2、接口数据请求失败 1可能是因为IE不识别es6的promise,解决方法如上。 2也可能是因为简易接口请求格式IE浏览器不识别。换做标准的格式即可 阅读全文
posted @ 2020-01-16 09:43 huihuihero 阅读(2735) 评论(0) 推荐(1)
摘要: 在build/webpack .prod.conf.js文件里做以下修改 然后直接 npm run build 打包后 就可以看到dist文件里的js文件名带上时间戳 阅读全文
posted @ 2020-01-15 16:29 huihuihero 阅读(1851) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-01-15 15:32 huihuihero 阅读(297) 评论(0) 推荐(0)
摘要: ``` 或者 ``` 阅读全文
posted @ 2020-01-15 15:23 huihuihero 阅读(4561) 评论(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 阅读(519) 评论(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 阅读(1580) 评论(0) 推荐(0)
摘要: ####倒计时代码(兼容ios) beforeDestroy(){ //页面销毁前清除定时器 clearInterval(this.countTimes) } methods:{ //方案一:先处理成ios和安卓均可转换的时间格式,再统一处理 timer(){ let u = navigator.u 阅读全文
posted @ 2020-01-15 11:07 huihuihero 阅读(1095) 评论(0) 推荐(0)
摘要: ####1、params传参(刷新页面后参数不消失,参数会在地址栏显示) 路由页面:<Route path='/demo/:id' component={Demo}></Route> //注意要配置 /:id 路由跳转并传递参数: 链接方式:<Link to={'/demo/'+'6'}>XX</L 阅读全文
posted @ 2020-01-08 10:42 huihuihero 阅读(19631) 评论(2) 推荐(5)
摘要: 两个一起看,就能理解了 https://www.jianshu.com/p/c1ee12a328d2/ https://www.cnblogs.com/qdlhj/p/9877881.html 总结1: 普通函数:根据调用我的人(谁调用我,我的this就指向谁) 箭头函数:根据所在的环境(我在哪个环 阅读全文
posted @ 2020-01-07 10:23 huihuihero 阅读(146) 评论(0) 推荐(0)
摘要: ##路由传值 ####路由传值,取值(一个参数) 1、路由部分配置:如router.js页面,在需要取值的页面的路由上添加/:testid { path:'/pUniversity/pUniversityInfo/:testid', //添加/:testid component:pUniversit 阅读全文
posted @ 2020-01-07 09:17 huihuihero 阅读(955) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 29 下一页