- s_id: ""
- s_name: ""
- s_sex: ""
- s_proid: ""
- s_nation:
- s_add: ""
- s_home:
- s_dadname:
- s_dadadd:
- s_mumname:
- s_mumadd:
- s_class: ""
- s_room: ""
- class:
- teacherid_0:
- majorid_0:
- collegeid_0:
- majorinfo: ""
- collegeinfo: ""
- teacherinfo: ""
- score: ""
- collegeid:
- majorid:
- teacherid:
- collegeid_1:
- s_apartment:
- s_dormitory:
- apartmentinfo: ""
- dormitoryinfo: ""
以上是我PHP方法返回的数据,当我将这个数据赋值给一个空数组并wx:for在前台渲染的时候,就这一条数据,重复渲染了N个block代码块,我不知道为什么?
wx:for="{{数组}}"一定要加上括号,不然的话就会渲染N遍
提供代码!
返回数据打印出来,并展示一下你的代码看看
弄一个 [ 能复现问题的简单的 ] 代码片段,我帮你看看
https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
请学会如何「提问」(👈戳我)
【个体工商户】微信认证问题(👈戳我)
提供下你的代码片段看看