原创 【vue】關於組件總結

1.函數式組件Vue.component('my-component', { functional: true, // 爲了彌補缺少的實例 // 提供第二個參數作爲上下文 render: function (createE