關於Vue的組件與模板的初步理解

首先在script標籤外面定義一個模板 <template id="zj2"> <div> <button type="button" @click="ja">+</button> <h3>{ {count}}</h3> </div> </template> 而後在script標籤裏建立一個組件 <script type="text/javascript
相關文章
相關標籤/搜索