首页 > 学院 > 开发设计 > 正文

Jscript 保留字

2019-11-18 11:06:21
字体:
来源:转载
供稿:网友

Jscript 有一些保留字不能在标识符中使用。保留字对 Jscript 语言有非凡的含义,它们是语言语法的一部分。使用保留字在加载脚本的时候将产生编译错误。

Jscript 还有一些留作将来使用的保留字。这些字不是现在的 Jscript 语言的一部分,然而它们是为将来的使用保留的。

保留词

breakdeletefunctionreturntypeofcasedoifswitchvarcatchelseinthisvoidcontinuefalseinstanceofthrowwhiledebuggerfinallynewtruewithdefaultfornulltry 

为将来保留的词

abstractdoublegotonativestaticbooleanenumimplementspackagesuperbyteeXPortimportPRivatesynchronizedcharextendsintprotectedthrowsclassfinalinterfacepublictransientconstfloatlongshortvolatile

当选择标识符时避免使用已经在内部 Jscript 对象或函数中使用的词,如 StringparseInt



发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表