节流队列 将Javascript Promise映射到给定的项目数组,并能够在任何给定时间限制活动Promises的数量。 样品用法: ThrottledQueue(["a", "b", "c", "d", "e"], (item, resolve, reject) => { setTimeout(() => { resolve(item); }, 2000); }, 2).then(results => { console.log(results); }); var http = require("http"); const urls = [ "https://run.mocky.io/v3/7b038025-fc5f-4564-90eb-4373f0721822?mocky-delay=2s&x=1", "https://run