摘要: JSON.stringify将忽略所有未定义的对象属性。 const user = { name: 'Stanko', phone: undefined }; user.phone; // -> undefined const stringifiedUser = JSON.stringify(use 阅读全文
posted @ 2023-01-05 15:37 SangFall 阅读(105) 评论(0) 推荐(0)