JavaScript基础

javascript

2008-03-27 14:24

大小写
//注释
/*   */
+ - * / ++ -- %(余)
= > < >= <= == !=  
! && ||

var

if ()
{}
else
{}

switch (){
case 1 :
代码;
break;
case 2:
代码;
barek;
default:
代码:
}

do
{}
while()

while()
{}

for (i=1;i<100;i++)
{}

for (x in 集合)
{}

break;
continue;

return:

with()
{
}


"=\"
' = \"
&=\&
换行=\n
\=\\
回车=\r