小程序篇五:在wxml中调用自定义的js函数

做小程序的时候,想在wxmll中直接使用substring截取想要的串,譬如以下这样写(发现行不通) <view class="picker"> {{list[index].bankcard.substring(14,18)}} </view> 后来找到解决方法如下: 1.创建js函数,然后在wxml去调用 界面效果:   <wxs src="../../wxs/sub.
相关文章
相关标签/搜索