2010-05-05 早
变量遵守的命名规则:
Camel标记法——首字母是小写的,接下来的单词都以大写字母开头。例如:var myTestValue=0;
Pascal标记法——首字母是大写的,接下来的单词都以大写字母开头。例如:var MyTestValue=0;
匈牙利类型标记法——在以Pascal标记法命名的变量前附加一个小写字母,说明该变量的类型。例如:var iMyTestValue=0;(数组 a,布尔型 b,浮点型 f,函数 fn,整型 i,对象 o,正则表达式 re,字符串 s,变型(任何类型)v)
关键字:break case catch continue defalut delete do else finally for function if in instanceof new return
switch this throw try typeof var void while with
保留字:abstract boolean byte char class const debugger double enum export extends final float goto
implements import int interface long native package private protected public short static super
synchronized throws transient volatile