const getAddify = (a,b) => { return new Promise((resolve) => { asyncAdd(a,b,(err, data) => { resolve(data) }) }) } const sum = async (...params) => { let res = 0 for(const number of params){ res = await getAddify(res, number) } return res } 这样不可以吗 看你for循环为啥注释了啊