微信小程序的模板使用有两种方法1include这个方法适用页面内有一个模板的includesrc="../template/header"/header.wxml里面是这样的2.import方法加载模板,此方法适用于页面内有多个模板importsrc="../template/footer"/templateis='foot2'/再看footer.wxml区分不同的模板,需要给template添加name属性

TAG标签: 微信小程序小程序微信模板

http://www.xiaochengxub.com/read-107924.html