摘要: 1.安装 也可以直接引入 2.使用 在src/main.js引入i18n 使用$t方法实现国际化 或者用v-text 阅读全文
posted @ 2019-07-12 18:16 程序生(Codey) 阅读(7415) 评论(0) 推荐(1) 编辑
摘要: 父组件和子组件相互传值:https://www.cnblogs.com/cxscode/p/11187989.html vue父组件触发子组件方法:https://www.cnblogs.com/cxscode/p/11188010.html 阅读全文
posted @ 2019-07-12 17:56 程序生(Codey) 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 包:https://www.npmjs.com/package/js-cookie 一、安装 npm install js-cookie --save 二、引用 import Cookies from 'js-cookie' 三、一般使用 存到Cookie去 // Create a cookie, 阅读全文
posted @ 2019-07-12 17:49 程序生(Codey) 阅读(3239) 评论(0) 推荐(0) 编辑
摘要: Vue 生命周期图 有时候会遇到这种问题 Cannot read property 'offsetWidth' of null 其实就是因为没按生命周期实现代码引起的,这种错误是因为页面还未渲染,就读取了页面的属性,如id引起的 可以使用mounted方法在视图加载完再做读取操作 <!DOCTYPE 阅读全文
posted @ 2019-07-12 17:23 程序生(Codey) 阅读(3008) 评论(0) 推荐(0) 编辑
摘要: vue2 手记 Vue文档:https://cn.vuejs.org/v2/api/#provide-inject Vue 生命周期:https://cn.vuejs.org/v2/guide/instance.html vuex状态管理:https://vuex.vuejs.org/zh/ 1.简 阅读全文
posted @ 2019-07-12 17:01 程序生(Codey) 阅读(239) 评论(0) 推荐(0) 编辑
摘要: Ant Design of Vue github地址:https://github.com/vueComponent/ant-design-vue Ant Design of Vue文档:https://vue.ant.design/docs/vue/introduce/ Ant Design of 阅读全文
posted @ 2019-07-12 16:51 程序生(Codey) 阅读(485) 评论(0) 推荐(0) 编辑