1.主要用途 小程序的插槽主要用于封装组件 2.匿名插槽和具名插槽 子组件:components/tab/index.wxml <view> <!-- 默认插槽 --> <slot></slot> <!-- 具名插槽 --> <slot name=