What is reason to use chunk in async response?

前端 未结 0 1201
耶瑟儿~
耶瑟儿~ 2021-01-18 00:48

There is a following code:

var res = [];
function response(data) {
   var chunk = data.splice( 0, 1000 );
     res = res.concat(
          chunk.map( function         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题