js关键字真是害人啊

来源:互联网 发布:组策略禁止软件联网 编辑:程序博客网 时间:2024/04/30 23:16

刚才搞了半天用js定义了一个clear函数,就是一直执行不了,换来换去,最后还是不小心换了一个函数名才可以,才发现原来clear是关键字,哎上次也有一次这样,真的得小心啊,要不真心要人命

可是查了一下clear也不是关键字或保留字啊,郁闷,惊呆

breakcasecatchcontinuedefaultdeletedoelsefinallyforfunctionifininstanceofnewreturnswitchthisthrowtrytypeofvarvoidwhilewith

abstractbooleanbytecharclassconstdebuggerdoubleenumexportextendsfinalfloatgotoimplementsimportintinterfacelongnativepackageprivateprotectedpublicshortstaticsupersynchronizedthrowstransientvolatile

0 0
原创粉丝点击