要在專案中使用eventBus 其實就是在Vue 裡面再註冊一個Vue 實例,eventBus 主要會使用到Vue 實例中的四種方法:. $on :註冊監聽. $once :只監聽一次.
確定! 回上一頁