获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
wx:for="{{数组}}"一定要加上括号,不然的话就会渲染N遍
wx:for对同个数组渲染了N遍?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代码块,我不知道为什么?
05-02