No.5一步步學習vuejs之事件監聽和組件

No.5一步步學習vuejs之事件監聽和組件 一監聽事件 可以用 v-on 指令監聽 DOM 事件,並在觸發時運行一些 JavaScript 代碼。 <div id="demo1"> <button v-on:click="count+=1">Add 1</button> <p>you have click the button for {{count}} times!</p> </div> <
相關文章
相關標籤/搜索