标签:script ssi log 返回值 枚举 rip object sig man
const obj = {
name: "zs",
age: 18,
sex: "man"
};
const newObj = Object.assign({ newname: "lisi" }, obj);
console.log(newObj, obj);
// { newname: ‘lisi‘, name: ‘zs‘, age: 18, sex: ‘man‘ } { name: ‘zs‘, age: 18, sex: ‘man‘ }
标签:script ssi log 返回值 枚举 rip object sig man
原文地址:https://www.cnblogs.com/bug-jin/p/10263909.html