db.collection("carbonQuotaYear").where({
time: 2020, //后面在替换成变量吧
id: mmm
}).get({
success: function success(res) {
quotaYear[j] = res.data[0].quota + quotaYear[j]
console.log("quotaYear" + areaData[j] + "单:" + quotaYear[j])
} //success内
}) //get内
看下错误,以及返回数据