1.组件分为三个板块
a. template 主要书写dom元素,可以书写html标签
b.如果不写templet,那就就需要在script标签内写 render方法,script也就是第二个板块,导出vue配置对象。
c.第三个板块是style,可以书写样式,scoped意思为此处的样式仅供当前页面使用
1.组件分为三个板块
a. template 主要书写dom元素,可以书写html标签
b.如果不写templet,那就就需要在script标签内写 render方法,script也就是第二个板块,导出vue配置对象。
c.第三个板块是style,可以书写样式,scoped意思为此处的样式仅供当前页面使用