小程序学习心得之template进行数据绑定

1经过引入要循环的模板,在block中进行绑定 能够经过在template外出加一层view来就行跳转,结构以下:`css <block wx:for="{{postList}}" wx:for-item="item" wx:for-index="idx"> <view catchtap="onPostTap" data-postId="{{item.postId}}"> <template is
相关文章
相关标签/搜索