javascript 的保留字 Javascript未来保留字(Javascript Future Reserved Words)
?
?以下的保留字不可以用作变量,函数名,对象名等,其中有的保留字是为以后JAVASCRIPT扩展用的.?
abstract
?
boolean
break
byte
?
case
catch
char
class
const
continue
?
default
do
double
?
else
extends
?
false
final
finally
float
for
function
?
goto
?
if
implements
import
in
instanceof
int
interface
?
long
?
native
new
null
?
package
private
protected
public
?
return
?
short
static
super
switch
synchronized
?
this
throw
throws
transient
true
try
?
var
void
?
while
with
?
?
Javascript保留字(Javascript Reserved Words)
Javascript保留字(Reserved Words)是指在Javascript语言中有特定含义,成为Javascript语法中一部分的那些字。Javascript保留字是不能作为变量名和函数名使用的。使用Javascript保留字作为变量名或函数名,会使Javascript在载入过程中出现编译错误。
Javascript保留字列表:
breakdeletefunctionreturntypeofcasedoifswitchvarcatchelseinthisvoidcontinuefalseinstanceofthrowwhiledebuggerfinallynewtruewithdefaultfornulltryJavascript未来保留字(Javascript Future Reserved Words)
Javascript还有一些未来保留字,这些字虽然现在没有用到Javascript语言中,但是将来有可能用到。
Javascript未来保留字列表:
abstractdoublegotonativestaticbooleanenumimplementspackagesuperbyteexportimportprivatesynchronizedcharextendsintprotectedthrowsclassfinalinterfacepublictransientconstfloatlongshortvolatile?
?