处理TypeError: Converting circular structure to JSON
摘要:
```javascript
// Demo: Circular reference
var o = {};
o.o = o; // Note: cache should not be re-used by repeated calls to JSON.stringify.
var cache = [];
JSON.stringify(o, function(key, value) { i... 阅读全文
posted @ 2017-05-05 18:24 司徒正美 阅读(15605) 评论(1) 推荐(0) 编辑