vue3 组件
时间:2021-06-17 16:30:09
收藏:0
阅读:0
基本实例
<div id="vm"> <button-counter></button-counter> </div> <script> const v = Vue.createApp({ data() { return { count: 0 } }, template: `<button @click="count++">次数:{{count}}</button>` }).mount(‘#vm‘) </script>
组件的复用
评论(0)