数据库中查询的目标,赋值到新的数组中,但新的数组不能在后面添加新的数值
for (let i = 0; i < total; i++) {
db.collection('dingdan').where({
cookopenid: _.in([res.data[i]._id])
}).get({
success(noe) {
console.log("length",noe.data.length)//成功
console.log("数据库数据",that.data.chushidata[i])//成功
let jd=that.data.chushidata[i]
let jdlg="jiedan:"+noe.data.length
console.log("jd",jdlg)//成功
jd.push(jdlg);
console.log("jd2",jd)//没反应,concat也试过
}
})
}