const books3 = await Book3.find({}).exec()
for(const item of books3) {
const d = JSON.parse(JSON.stringify(item))
delete d.id
await new Book(d).save()
}
// 把book3中的表插入到book中
// 把原来的表数据遍历一下,删除ID,然后插入数据
const books3 = await Book3.find({}).exec()
for(const item of books3) {
const d = JSON.parse(JSON.stringify(item))
delete d.id
await new Book(d).save()
}
// 把book3中的表插入到book中
// 把原来的表数据遍历一下,删除ID,然后插入数据
在mongo vue 里面删除所筛选出来的批量数据,
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M