JS/TS中对象赋值只传值不传对象(地址)的方法,改变新值不影响旧值
JS:var newModel = $.extend(true,{},oldModel)
TS:let newModel = Object.assign({}, oldModel);
参考:https://blog.csdn.net/tg928600774/article/details/83651608
JS:var newModel = $.extend(true,{},oldModel)
TS:let newModel = Object.assign({}, oldModel);
参考:https://blog.csdn.net/tg928600774/article/details/83651608