[英]How can i delete key from the object?
const newdata = {biddate: new Date(), productId: id, bidamount: bid, username: user.displayName, email: user.email};
};
i want to delete key from this object.我想从此 object 中删除密钥。
delete newdata.email;
You can try this你可以试试这个
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.