我的代码如下:
const newArray = this.number_Group.map(item => item.number);
newArray 返回结果是
["15629481161", "18607249551", "13094190882", "16607248081", "13094196911", "16671550332", "18671160383", "16671555438", "16671546264", "13235576271", "15629950962", "16607241776", "17607240019", "13094196652", "13197406447", "16607247741", "13197421124", "13197422741", "13094198319", "13094198711", "13094190363", "16607248177", "15629472242", "13197402814", "16607247546", "13197426926", "13197402874"]
.where(numbers.number in [${newArray}]
)
这样写,不报错,但是查不到数据。
[] 内写具体的数字,就可以查到。但是那多傻啊,难道要一个个数字具体填进去?
写了N种方法,全部不行,不是查不到数据,就是报错, 搞崩溃了,官方能否写给个正确的例子?