element table cell-style设置

时间:2025-03-03 08:12:53
js 实现同时调两个接口

努力当上钱厚端: 并发按顺序执行: [code=javascript] const APIs = [ statistics1(), statistics2(), statistics3(), ]; const that = this; (async function () { for await (let res of APIs) { ("设备运行状态:", ); (...); } })(); [/code] 并发无序返回: [code=javascript] const APIs = [statistics1, statistics2, statistics3, statistics4]; for (let api of APIs) { api().then((res) => { ("站统计:", res); = { ..., ... }; }); [/code]