摘要: 例子 const obj = {} Object.defineProperty(obj, 'prop', { value: 10 }) JSON.stringify(obj) // 输出:{} 原因 好多博客介绍的是 “不可枚举” 的属性不会写入字符串,我也知道 function、日期、正则等无法写 阅读全文
posted @ 2021-05-24 03:40 岭南灯火 阅读(325) 评论(0) 推荐(0) 编辑