js一句话深拷贝对象

Object.defineProperties({},Object.getOwnPropertyDescriptors(obj));

JSON.parse(JSON.stringify(a));

posted @ 2019-07-25 09:31  G善源  阅读(97)  评论(0编辑  收藏  举报