Vue

全局注册

缺点:

  1. 造成了用户下载的 JavaScript 的无谓的增加
  2. 仍然会被包含在你最终的构建结果中,慢
Vue.component('my-component-name', {
  // ... 选项 ...
})

局部注册

评论

暂无评论