js里的对象克隆

JSON.parse(JSON.stringify(obj));   obj为克隆的对象

posted @ 2021-04-25 19:45  玄空2  阅读(47)  评论(0)    收藏  举报