重现代码片段:
https://developers.weixin.qq.com/s/tqmZCBm17PkE
页面渲染很慢,有很多这样的log
appservice.js:1485 right res {id: “”, dataset: {…}, left: 0, right: 320, top: 38392, …}
appservice.js:1485 right res {id: “”, dataset: {…}, left: 0, right: 320, top: 38505, …}
appservice.js:1485 right res {id: “”, dataset: {…}, left: 0, right: 320, top: 38580, …}
appservice.js:1485 right res {id: “”, dataset: {…}, left: 0, right: 320, top: 38674, …}
appservice.js:1485 right res {id: “”, dataset: {…}, left: 0, right: 320, top: 38768, …}
appservice.js:1485 right res {id: “”, dataset: {…}, left: 0, right: 320, top: 38862, …}
appservice.js:1485 right res {id: “”, dataset: {…}, left: 0, right: 320, top: 38956, …}
…
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
appservice.js:1485 btn rects [{…}]
https://developers.weixin.qq.com/s/tqmZCBm17PkE
首页列表中使用slideview,发现渲染很慢!控制台很多log。
如果一次加载100条甚至更多数据的时候,更加明显。