当前位置 博文首页 > li5672的专栏:解决TypeError: Converting circular structure t
var cache = [];
var aa = JSON.stringify(rowData, function(key, value) {
if (typeof value === 'object' && value !== null) {
if (cache.indexOf(value) !== -1) {
return;
}
cache.push(value);
}
return value;
});
cache = null;
cs