在vue中,使用watch來響應數據的變化。watch的用法大致有三種。 1. 常用用法<input type="text" v-model="name"/> new Vue({ el: '#app', data: { name: '鹹魚' } ...
確定! 回上一頁