值对从一个对象?
这个问题在这里已经有了答案:
delete data[req.params.id]
或delete data[id]
应该工作。
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete
链接地址: http://www.djcxy.com/p/4677.html这个问题在这里已经有了答案:
delete data[req.params.id]
或delete data[id]
应该工作。
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete
链接地址: http://www.djcxy.com/p/4677.html