vue.js的組件的data屬性

每一個組件也像每一個Vue實例擁有本身的data屬性和methods方法 <div id="app"> <cpn></cpn> </div> <template id="cpn"> <div> <h2>我是組件</h2> <h3>目前計數:{{count}}</h3> </div> </template> <script> //
相關文章
相關標籤/搜索