0

I am developing an application in Weex using Vue.js.

I am trying to build a list component and I was going through the document and in there, there are component which I can use.

  1. <list>
  2. <recycle-list>

I couldn't figure out the difference between two as under the hood how do they differ? It could be inffered that <recycle-list is more efficient than using a <list but the reason is no where mentioned.

Also <recyle-list> does not work on web but it works fine on mobile application. What is the reasoning behind that?

4

1 回答 1

0

从文档:

<列表>

受Android RecyclerView 启发的List 组件是一个核心组件,它提供了最流行的使用列表项的功能。支持垂直和水平列表。

它可以提供出色的体验和性能,同时仍然保持流畅的滚动和低内存使用。

<回收列表>

是一个新的列表容器,具有回收再利用的能力,可以极大的优化内存使用和渲染性能。

网页版<recycle-list>也在开发中。- 因此,为什么它现在不能在网络上运行。

于 2018-06-06T06:15:07.653 回答