其他分享
首页 > 其他分享> > 解决TypeError: Converting circular structure to JSON

解决TypeError: Converting circular structure to JSON

作者:互联网

           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;

标签:TypeError,return,cache,value,JSON,var,Converting,null
来源: https://blog.csdn.net/li5672/article/details/119345399