在 JSON site它说
JSON does not support cyclic data structures, so be careful to not give cyclical structures to the JSON stringifier.
这是什么意思?谁能给我一个 Javascript 中这种数据结构的例子吗?
最佳答案
var cyclic = {};
cyclic.somekey = cyclic;
cyclic.another = "Hello world!";
现在你可以这样做了,例如:
alert(cyclic.somekey.somekey.somekey.another);
https://stackoverflow.com/questions/3010357/