Typeof

再出发!

导航

2020年1月10日 #

前端基础知识学习第二节

摘要: 1. var a = { n: 1 }; var b = a; a.x = a = { n: 2 }; console.log(a); console.log(b); 答案:{ n: 2 },{ n: 1, x: { n: 2 } } 分析:这里最核心的地方就是a.x运算优先级高于=,因为a.x优先 阅读全文

posted @ 2020-01-10 18:48 Typeof 阅读(65) 评论(0) 推荐(0) 编辑