Files
AutoJs6/app/src/main/assets/help/w3c/保留字.html
T

71 lines
1.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<div id="maincontent">
<h1>ECMAScript 保留字</h1>
<div id="tpn">
</div>
<div>
<p><strong>本节提供完整的 ECMAScript 保留字列表。</strong></p>
</div>
<div>
<h2>ECMAScript 保留字</h2>
<p>ECMA-262 定义了 ECMAScript 支持的一套<em>保留字(reserved word)</em>。</p>
<p>保留字在某种意思上是为将来的关键字而保留的单词。因此保留字不能被用作变量名或函数名。</p>
<p>ECMA-262 第三版中保留字的完整列表如下:</p>
<pre>
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
</pre>
<p class="important"><span>注意:</span>如果将保留字用作变量名或函数名,那么除非将来的浏览器实现了该保留字,否则很可能收不到任何错误消息。当浏览器将其实现后,该单词将被看做关键字,如此将出现关键字错误。</p>
</div>
<div id="bpn">
</div>
</div>