摘要: 我认为绑定一个值 然后把值改变不同的名字即可 阅读全文
posted @ 2018-05-24 12:12 又回到了起点 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 1.当项目比较大时,所有的状态保存在一个对象中,显得臃肿,所以要模块化 2.模块内部的mutation 和getter,接收的第一参数state是模块的局部对象 3.用namespaced:true定义局部命名空间 4.如果你希望使用全局state和getter,roorState和rootGett 阅读全文
posted @ 2018-05-23 18:02 又回到了起点 阅读(110) 评论(0) 推荐(0) 编辑
摘要: export const serialize = (data, sections = [], weeks = []) => { const getWithParentArray = (newArr, parentIndex = -1, parentIndexObj = {}) => newArr.m 阅读全文
posted @ 2018-05-22 10:11 又回到了起点 阅读(507) 评论(0) 推荐(0) 编辑
摘要: active-class 类型: string 默认值: "router-link-active" 类型: string 默认值: "router-link-active" 设置 链接激活时使用的 CSS 类名。默认值可以通过路由的构造选项 linkActiveClass 来全局配置。 阅读全文
posted @ 2018-05-21 14:40 又回到了起点 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1.git fetch 会从远程分支上下载 2.git pull 会将本地库更新至远程库最新状态 阅读全文
posted @ 2018-05-18 14:14 又回到了起点 阅读(138) 评论(0) 推荐(0) 编辑
摘要: tinyMCE.init({ readonly : 1 }); 2.tinymce.activeEditor.getBody().setAttribute('contenteditable', false); tinyMCE.init({ readonly : 1 }); 2.tinymce.act 阅读全文
posted @ 2018-05-17 10:23 又回到了起点 阅读(2255) 评论(0) 推荐(0) 编辑
摘要: 用ref='Example'定义 用this.$refs.Example获取 阅读全文
posted @ 2018-05-16 16:19 又回到了起点 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1.router-link :to="{name:xxx,params:{key:value}}">valueString</router-link> name:就是我们在路由配置文件中起的name值 params:就是我们要传的参数,它也是对象形势,在对象里可以传递多个值 2. 阅读全文
posted @ 2018-05-15 10:41 又回到了起点 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1.Lockr.set - 参数: [ key, value ] {String, Number, Array or Object} 设置一个指定的值,可以是任意类型 2.Lockr.get - 参数: [ key or hash_key, default value ] 如果给定的键返回被保存的值 阅读全文
posted @ 2018-05-14 10:22 又回到了起点 阅读(420) 评论(0) 推荐(0) 编辑
摘要: ...将一个数组转为用符号分隔的参数序列 2. 阅读全文
posted @ 2018-05-11 11:26 又回到了起点 阅读(103) 评论(0) 推荐(0) 编辑