js 连续赋值

js 连续赋值

以下代码输出什么? 为什么?var a = {n:1}var b = a a = {n:2}a.x = a console.log(a.x)console.log(b.x)var a = {n: 1}var b = aa.x = a = {
JavaScript110