目录
assign
>>let x={a:11,b:22};
>>let y={b:33,c:44};
>>let z={};
>>Object.assign(z,x,y);
>>z
Object { a: 11, b: 33, c: 44 }
>>z.toString()
"[object Object]"
>>z["toString"]=()=>{return `a=${z.a},b=${z.b}`};
function toString()
>>z.toString()
"a=11,b=33"
标签:11,web,let,33,Object,js,toString,杂记,assign
From: https://www.cnblogs.com/waterruby/p/17636723.html