摘要: components 组件 //组件 Vue.component('friend component', { props : ['friend'], filters:{ ageInOneYear(age) { return age + 1; }, fullName(value) { return ; 阅读全文
posted @ 2018-02-22 00:49 IT-caijw 阅读(121) 评论(0) 推荐(0) 编辑
摘要: directives 指令 const app = new Vue({ el : ' app', data : { friends: [ { first : 'bobby', last : 'banne', age : 25 }, { first : 'john', last : 'Baby', a 阅读全文
posted @ 2018-02-22 00:48 IT-caijw 阅读(163) 评论(0) 推荐(0) 编辑
摘要: vue02 filters computer html main.js const app = new Vue({ el : ' app', data : { bobby: { first : 'bobby', last : 'banne', age : 25 }, john : { first : 阅读全文
posted @ 2018-02-22 00:47 IT-caijw 阅读(236) 评论(0) 推荐(0) 编辑
摘要: vue学习01 index.html main.js const app = new Vue({ el : ' app',//挂载在哪个节点 data : { //数据存储 bobby: { name : 'bobby banne', age : 25 }, john : { name : 'joh 阅读全文
posted @ 2018-02-22 00:46 IT-caijw 阅读(74) 评论(0) 推荐(0) 编辑