Ant Design Mobile drop-down refreshes the list, and the backend returns data processing problems.

The

Ant Design Mobile drop-down refreshes the list, and the backend returns the data processing problem. In the official component (as shown in the following figure), the data processing is simulated:

clipboard.png

11componentDidMount()genData();
22genData()this.rData

:
22

:
:
https://antd-mobile.gitee.io/...
:

clipboard.png

Dec.12,2021

if you merge objects, you can also use Object.assign , and there are also some implementations of other frameworks, such as extend
in jq. I compared the performance with assign and . extensions, and tested
assign on node,chrome,firefox and Android quark browsers, respectively, the speed of
assign is one order of magnitude faster than that of . . You can try assign to merge objects
as for other schemes, you can do a performance test yourself. You can refer to the following articles for performance testing.

< H2 > reference < / H2 >

uses Benchmark.js and jsPerf to analyze code performance

Menu