小程序學習心得之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
相關文章
相關標籤/搜索