home.wxs let name = "xxx" let age = 11 function format(num) { return num++ } module.exports = { name, age, format } home.wxml <wxs src="./home.wxs" module="home" /> <view>{{home.format(home.age)}}</view>