如果是複雜的專案建議使用Vuex 管理,因為event bus 的bug 難發現且不好 ... 我們先建立vue-cli 專案,在src 資料夾下先建立bus.js 再匯入main.js。
確定! 回上一頁