当前位置 博文首页 > li5672的专栏:解决TypeError: Converting circular structure t

    li5672的专栏:解决TypeError: Converting circular structure t

    作者:[db:作者] 时间:2021-08-30 15:59

               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