想问一下,以下代码
let a = {
x: 'html',
y: 'javascript'
};
let b = a;
b.x = 'linkkap';
console.log(a.x);
为什么结果 a.x 是 linkkap 而不是 html 啊
想问一下,以下代码
let a = {
x: 'html',
y: 'javascript'
};
let b = a;
b.x = 'linkkap';
console.log(a.x);
为什么结果 a.x 是 linkkap 而不是 html 啊