include
可以将目标文件除了 <template/>
<wxs/>
外的整个代码引入,相当于是拷贝到 include
位置
src需要写入相对路径 不然不会生效
index.wxml
include src="../header/header.wxml"/>
<view>body</view>
<include src="../footer/footer.wxml"/>
header.wxml
<text>header</text>
footer.wxml
<text>footer</text>