2018年1月26日

Vue.js使用-组件(上篇)

摘要: 1.什么是组件 组件可以理解为定义的一个view模块,可重复使用。 2.组件使用 1)创建组件 var myComponent = Vue.extend({ template: 'this is a component' }) 2)注册组件 Vue.component('my component', 阅读全文

posted @ 2018-01-26 18:18 迪米特 阅读(126) 评论(0) 推荐(0) 编辑

导航