為什么第二種報錯,https://developer.mozilla.org... MDN上兩種優(yōu)先級好像一樣啊new (Vue.extend({ mixins: [myMixin]
}))// 報錯 Uncaught TypeError: Cannot read property 'name' of
// undefined
// at new Vue.extend (vue.js:3425)new Vue.extend({
mixins: [myMixin]
})
new 和 函數(shù)調(diào)用的優(yōu)先級
紅糖糍粑
2018-10-19 13:10:09