Vue.use() 和 Vue.component()

1.Vue.use() 傳入的是對象,內部執行時 依舊是  Vue.component() javascript 2.Vue.component() 只能同時註冊一個組件,而Vue.use() 的install裏能夠寫多個Vue.component()vue 因此基於項目 ,對於咱們二次封裝的組件 在main.js裏,能夠用Vue.use()處理(基於代碼量簡結)java 好比應用Vue.comp
相關文章
相關標籤/搜索