vue组件使用

来源:互联网 发布:正交矩阵的性质证明 编辑:程序博客网 时间:2024/06/05 10:12
1、定义组件
<template>
  <div class="smList">
this is test page;
  </div>
</template>
2、导入组件
import test_bbb from "./test"
3、注册组件
export default {
  components:{test_bbb},
}
4、使用组件
<test_bbb></test_bbb>