组件的注册(使用extend的旧方法)---该处是全局注册
摘要:
1、创建组件构造器 //1、创建组件构造器对象 const cpnC = Vue.extend({ template:` <div> <h2>我是标题</h2> <p>我是内容</p> </div> ` }); 2、注册组件 //2、注册组件 //Vue.component(组件的标签名,模版); 阅读全文
posted @ 2021-02-09 23:10 W~C停用 阅读(55) 评论(0) 推荐(0) 编辑