javascript中未定义的关键字 [英] undefined keyword in javascript
本文介绍了javascript中未定义的关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在阅读 ECMA-262 并看到以下内容:
I'm reading the ECMA-262 and see the following:
PrimaryExpression :
this
Identifier
Literal
ArrayLiteral
ObjectLiteral
( Expression )
Literal ::
NullLiteral
BooleanLiteral
NumericLiteral
StringLiteral
RegularExpressionLiteral
正如我们所见,PrimaryExpression 定义中没有 undefined
.那么,undefined
是如何求值的,它属于什么类型的表达式?
As we can see there is no undefined
in the PrimaryExpression defenition. So, how does undefined
is evaluating and to what type of expression it belongs?
推荐答案
undefined
不是关键字.它是一个全局只读变量,表示未定义的值.这意味着它属于您列表中 PrimaryExpression 下列出的 标识符 类别.
这篇关于javascript中未定义的关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文