你知道如何使用JavaScript来序列化一个含有循环引用的对象吗?快来一起学习一下吧。
视频中的完整代码:https://github.com/dreamapplehappy/a-box-of-chocolates/tree/master/frontend/resolve-circular-structure
参考的一些内容:
jsonPath: https://goessner.net/articles/JsonPath/
cycle.js: https://github.com/douglascrockford/JSON-js/blob/master/cycle.js
如果你对这个视频有什么意见或者建议,欢迎留言或者私信告诉我,我们一起进步吧。