1、对象
New = Object.assign({},Old)
New = JSON.parse(JSON.stringify(Old ))
2、数组
New = $.extend(true,{},Old )
New = Old .concat();
交换循环赋值
1、对象
New = Object.assign({},Old)
New = JSON.parse(JSON.stringify(Old ))
2、数组
New = $.extend(true,{},Old )
New = Old .concat();
交换循环赋值