题海让大学四年没有难题
白天模式登陆

题目详情

单选题 下列代码中横线处应该使用( )来引用组件myComponent. <div id="app"> </div> <script> Vue.component('myComponent', { data () { return { count: 0 } }, template: '<button v-on:click="count++">被单击{{count}}次</button>' }) var vm = new Vue({ el: '#app' , }) </script>

A. <mycomponent></mycomponent>

B. <my-component></my-component>

C. <myComponent></myComponent>

D. <MyComponent></MyComponent>

Vue.js前端框架技术课程封面

学科:Vue.js前端框架技术

时间:2025-03-31 02:05:52

Copyright © 2022 津ICP备2021001502号