上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 28 下一页
摘要: ``` 这些生命周期钩子已重命名。你仍然可以使用旧版本周期函数,但控制台会报警告。 componentWillMount → UNSAFE_componentWillMount componentWillReceiveProps → UNSAFE_componentWillReceiveProps componentWillUpdate → UNSAFE_componentWillUpdate 对 阅读全文
posted @ 2020-02-03 18:51 huihuihero 阅读(9312) 评论(0) 推荐(0) 编辑
摘要: ##简单的使用(应用场景:少量几个页面的中英文切换) #####1、安装 vue-i18n依赖 yarn add vue-i18n 或者 npm install vue-i18n --save-dev ######2、在src/components下新建文件夹language,并在文件夹langua 阅读全文
posted @ 2020-01-21 10:13 huihuihero 阅读(12174) 评论(5) 推荐(3) 编辑
摘要: ###vue2.0中使用百度编辑器(仅适用于2.0,与3.0有所不同,3.0版本使用者可略过) 1、yarn add vue-ueditor-wrap //下载此包可实现双向绑定功能 2、将去官网下载百度编辑器包(jsp版本),将名字改为UEditor放在项目的static文件夹下(与src同级) 阅读全文
posted @ 2020-01-19 08:55 huihuihero 阅读(2864) 评论(1) 推荐(0) 编辑
摘要: 1、IE浏览器打开网站后显示空白,并报错:Error in created hook: "ReferenceError: “Promise”未定义" 2、接口数据请求失败 1可能是因为IE不识别es6的promise,解决方法如上。 2也可能是因为简易接口请求格式IE浏览器不识别。换做标准的格式即可 阅读全文
posted @ 2020-01-16 09:43 huihuihero 阅读(2681) 评论(0) 推荐(1) 编辑
摘要: 在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) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 28 下一页