scroll-view无法使用列表渲染
< scroll-view scroll-y class = "list-view" bindscrolltolower = "" > < view wx:for = "{{roomList}}" wx:for-item = "item" > < view data-id = "{{item.id}}" data-themeid = "{{item.themeId}}" > < view open-type = "getUserInfo" style = "background-image:url({{item.coverUrl}})" ></ view > </ view > </ view > </ scroll-view > |
这个地方,我的roomList是根据异步请求加载的,设置了setData,页面中可以看到roomList数组有数据,但是渲染失败,撤掉scroll-view,正常循环出结果