var obj={
name:'lilei',
age:24
};
var obj= JSON.parse(JSON.stringify(obj1));
转载于:https://www.cnblogs.com/pengfei25/p/8708171.html