摘要: a.x = a = { }, 深入理解赋值表达式var o = {x : 1};var a = o;a.x = a = {name:100};console.log(a.x); // undefinedconsole.log(o.x); // {name:100}// a.x = a = {name:100};// 等价于 a.x = (a = {name:100});// 首先计算a.x的引用,然后计算(a = {name:100})的返回值if 语句的简写var condition = true, numb = 0;if(condition) { alert('rain-... 阅读全文
posted @ 2010-10-16 20:09 Rain Man 阅读(981) 评论(0) 推荐(0) 编辑