摘要: 在需要使用方法的wxml组件中引入, <wxs src="../util.wxs" module="tools" /> <!-- tools可以自定义 --> <view class='listImg {{tools.fn([1,2,3,4], 4).indexOf ? "active" : ""} 阅读全文
posted @ 2019-01-09 18:46 李里ly 阅读(4363) 评论(0) 推荐(0) 编辑