日期:2014-05-16 浏览次数:20345 次
一、带操作的赋值运算符
1.+= 执行加法和赋值运算
total+=sales_tax; //等同于 total=total+sales_tax;
greeting = "hello" + (username != null ? username : "there"); //等价于 greeting = "hello"; if(username != null) greeting += username; else greeting += "there";
document.LastModified; navigator.appName; frame[0].length; document.write("hello world");
frames[1]; document.forms[i + j]; document.forms[i].elements[j++];
document["LastModified"]; frames[0]['length']; data["val" + i];