父组件引入子组件 子组件新建 在父文件的json文件中 "usingComponents": { "tab":"../../components/tab/tab" //引入子组件的路径 } wxml使用 <tab></tab>