摘要: 需求:将数组中的值作为参数,循环调用新增接口实现批量导入功能。因为接口调用有时间间隔限制,避免误操作,所以需要设置接口请求的间隔时间。 原代码如下: const recursive = (arr, index) => { arr[index]().then((res) => { if (index 阅读全文
posted @ 2022-10-24 10:36 罗毅豪 阅读(627) 评论(0) 推荐(0) 编辑