vue.js的组件使用过程分为三个步骤:一、建立组件构造器; 二、注册组件; 三、使用组件vue
组件同时也分为全局组件与局部组件spa
一、全局组件code
二、局部组件component
注意:因为 HTML 标签不区分大小写,因此在生成的标签名都会转换为小写。例如,当你的 template 为 <MyComponent></MyComponent> 时,插入 DOM 后会被转换为 <mycomponent></mycomponent>。blog
template
<MyComponent></MyComponent>
<mycomponent></mycomponent>