我因此创建了一个对象:
var savingArray = new Array({doctorId: "something", username: "something", password: "something", givenName: "something", familyName: "something", address: "something", zip:"something", emailAddress: "something", phoneNumber: "something", labs: "something", defaultLab: "something"});
现在我希望删除对象的每个值...我想以 saveArray 结束,这样:
savingArray == ({doctorId: "", username: "", password: "", givenName: "", familyName: "", address: "", zip:"", emailAddress: "", phoneNumber: "", labs: {}, defaultLab: ""});
所以我想要的只是将所有值更改为“”动态..
saveArray 从来没有相同的对象,所以不能这样做:
savingArray[0].doctorId = "";