Vue中引入组件的步骤?

1.采用ES6的import … from …语法

CommonJS的require()方法引入组件
【Vue中引入组件的步骤?】2.对组件进行注册,代码如下
注册

Vue.component('my-component', {template: 'A custom component!'})

3.使用组件

    推荐阅读