const CounterComponent = Vue.extend(Counter);
this.vm = new CounterComponent({}).$mount('#container');
其中 Counter 是引进来的组件
this.vm是引进来的组件生成的vue实例
我们可以通过this.vm.xx来直接控制Counter中的data中的数据
2023-05-24编程教程下载本文extend,Vue,实例
const CounterComponent = Vue.extend(Counter);
this.vm = new CounterComponent({}).$mount('#container');
其中 Counter 是引进来的组件
this.vm是引进来的组件生成的vue实例
我们可以通过this.vm.xx来直接控制Counter中的data中的数据
《vue中使用vue.extend在dom挂载vue实例.doc》
下载本文的Word格式文档,以方便收藏与打印。