微信小程序wxs如何使用

  • 新建一个.wxs文件
  • <!-- 引入.wxs文件 src为相对路径,module指定当前模块的名称 -->
  • <wxs module="filter" src="./func.wxs"></wxs>
  • <view>{{filter.xxx(item)}}</view>
原文地址:https://www.cnblogs.com/shaozhu520/p/14302546.html