JavaScriptオブジェクトプロパティ

属性のマージ

let a = {name: 'hello'}
let b = {...a,age: 23}
// {name: "hello", age: 23}

深いコピー

anathorObj = JSON.parse(JSON.stringfy(obj))
公開された126元の記事 ウォンの賞賛3 ビュー4555

おすすめ

転載: blog.csdn.net/Q10CAU/article/details/105433629