上一页 1 ··· 81 82 83 84 85 86 87 88 89 ··· 167 下一页
摘要: vue2.0 路由: http://router.vuejs.org/zh-cn/index.html 基本使用: 1. 布局 主页 2. 路由具体写法 //组件 var Home={ template:'我是主页' }; var News={ template:'我是新闻' }; /... 阅读全文
posted @ 2017-06-12 02:45 无天666 阅读(283) 评论(0) 推荐(0)
摘要: 智能社——http://www.zhinengshe.com 智能社——http://www.zhinengshe.com ... 阅读全文
posted @ 2017-06-12 01:51 无天666 阅读(2952) 评论(0) 推荐(0)
摘要: 智能社——http://www.zhinengshe.com 智能社——http://www.zhinengshe.com ... 阅读全文
posted @ 2017-06-12 01:28 无天666 阅读(1151) 评论(0) 推荐(0)
摘要: 智能社——http://www.zhinengshe.com 智能社——http://www.zhinengshe.com ... 阅读全文
posted @ 2017-06-12 01:00 无天666 阅读(190) 评论(0) 推荐(0)
摘要: ------------------------------------------------------ 可以单一事件管理组件通信: 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)
上一页 1 ··· 81 82 83 84 85 86 87 88 89 ··· 167 下一页