javascript 深拷贝对象

深拷贝polesResult,拷贝后sourceCopy成为与polesResult完全独立的对象

var sourceCopy=[].concat(JSON.parse(JSON.stringify(polesResult)));

猜你喜欢

转载自www.cnblogs.com/dog2016/p/10237004.html