摘要: 第 1题:输出以下代码的执行结果并解释为什么 var a = {n: 1}; var b = a; a.x = a = {n: 2}; console.log(a.x) console.log(b.x)答案为:undefined {n:2} 首先,a和b同时引用了{n:2}对象,接着执行到a.x = 阅读全文
posted @ 2020-03-29 11:58 进击的白菜 阅读(107) 评论(0) 推荐(0) 编辑