输入:
{"_id": "1235625485","_rev": "1-jsdjsid456862"},
输出:
{"_id": "1235625485","_rev": "1-jsdjsid456862","_deleted":true},
答案 0 :(得分:0)
你不需要更换,它只是添加属性。也许你无法正确地说出来。下面是如何添加属性的示例。
var a = {"_id": "1235625485","_rev": "1-jsdjsid456862"}
a._deleted = true;
console.log(a)