Vue-cli子组件创建及使用 子组件创建及使用导入子组件的注意事项: 子组件创建及使用 在components下创建子组件 在App.vue父组件中引入子组件 导入子组件的注意事项: @表示从src资源文件夹开始查找 import child from “@/components/child.vue”; 相对路径一定要加./ import child from “./components/child.vue”;