另外,從上面的程式碼可知,生命週期函數要寫在 Vue 實例中 options 選項物件裡的。接下來這個範例只是單純地示範 ... mounted: function () { console.log('mounted.
確定! 回上一頁