微信小程序for循环遍历

wxml:
          <block wx:for="{{data}}" wx:for-item="data">
            <view>{{data.name}}</view>
          </block>
 
js-data:
data:[
      {
        name:"张三"
      },
      {
        name:"李四"
      },{
        name:"王五"
      }

    ],

相关推荐