Promise.all Promise 返回多个promise对象
摘要:
const data1 = function1({ id: "" }); const data2 = function2({ deptId: ""}); Promise.all([data1, data2]).then((res) => { console.log(res); }; 阅读全文
posted @ 2022-01-03 21:30 神采飞阳 阅读(135) 评论(0) 推荐(0) 编辑