0

var ObjectID = require(‘mongodb’).ObjectID;
var id = new ObjectID(req.params.id);
进行删除的时候报错:TypeError: hex is not a function

是什么原因造成的?

Answered question