在wxml中写入循环的对象:
然后在js文件中的data中添加对象的各属性值:
效果图:
微信小程序-循环(遍历)的使用
原文:https://www.cnblogs.com/weixiaofantasy/p/10074228.html