javascript关键字和保留字

来源:互联网 发布:昆明行知中学校花 编辑:程序博客网 时间:2024/05/18 17:01



今天在写一个函数的时候,不起作用,然后我找了很久的原因,刚刚开始以为是逻辑的问题,然后查找了很久发现没错, 后面我终于想到关键字和保留字这个问题上来,然后一改名,发现函数能用了. 所以我搜集和整理一些关键字和保留字,希望以后在工作中不会出现这样的失误.


javascript保留字有:


abstract
boolean
byte
char
class
const
debugger
double
enum
export
extends
fimal
float
goto
implements
import
int
interface
long
mative
package
private
protected
public
short
static
super
synchronized
throws
transient
volatile


javascript关键字有:


break
case
catch
continue
default
delete
do
else
finally
for
function
if
in
instanceof
new
return
switch
this
throw
try
typeof
var
void
while
with

0 0
原创粉丝点击