摘要: ------------------------------------------------------ 可以单一事件管理组件通信: vuex var Event=new Vue(); Event.$emit(事件名称, 数据) Event.$on(事件名称,function(data){ //data }.bind(this)); ... 阅读全文
posted @ 2017-06-11 23:34 无天666 阅读(437) 评论(0) 推荐(0)
摘要: 智能社——http://www.zhinengshe.com 我是子组件 {{msg}} 父级: ->{{a}} ... 阅读全文
posted @ 2017-06-11 23:17 无天666 阅读(210) 评论(0) 推荐(0)
摘要: 智能社——http://www.zhinengshe.com {{msg | currency}} 智能社——http://www.zhinengshe.com ... 阅读全文
posted @ 2017-06-11 17:44 无天666 阅读(230) 评论(0) 推荐(0)
摘要: 智能社——http://www.zhinengshe.com 阅读全文
posted @ 2017-06-11 17:34 无天666 阅读(1715) 评论(0) 推荐(0)
摘要: 3. 循环 2.0里面默认就可以添加重复数据 arr.forEach(function(item,index){ }); 去掉了隐式一些变量 $index $key 之前: v-for="(index,val) in array" 现在: v-for="(val,ind... 阅读全文
posted @ 2017-06-11 17:31 无天666 阅读(210) 评论(0) 推荐(0)
摘要: 组件模版: 组件定义方式 声明周期 阅读全文
posted @ 2017-06-11 17:15 无天666 阅读(268) 评论(0) 推荐(0)
摘要: index.html main.js App.vue Menu.vue router.config.js Detail.vue Home.vue Login.vue News.vue Reg.vue webpack.config.js package.json 阅读全文
posted @ 2017-06-11 08:42 无天666 阅读(354) 评论(0) 推荐(0)
摘要: index.html index.js content.scss admin.css webpack.config.js package.json 阅读全文
posted @ 2017-06-11 06:52 无天666 阅读(192) 评论(0) 推荐(0)
摘要: consumer-index.html consumer-index.js admin-index.html admin-index.js webpack.config.js package.json 阅读全文
posted @ 2017-06-11 03:50 无天666 阅读(178) 评论(0) 推荐(0)
摘要: index.html index.js index.css package.json webpack.config.js 阅读全文
posted @ 2017-06-11 03:19 无天666 阅读(174) 评论(0) 推荐(0)
摘要: webpack.config.js package.json main.js index.html App.vue Menu.vue 阅读全文
posted @ 2017-06-11 02:22 无天666 阅读(977) 评论(0) 推荐(0)