微信小程序for循环遍历
wxml:
<block wx:for="{{data}}" wx:for-item="data">
<view>{{data.name}}</view>
</block>
js-data:
data:[
{
name:"张三"
},
{
name:"李四"
},{
name:"王五"
}
],
> From 子枫i
如果该文章对你有帮助的话,不妨点个赞