JavaScript 保留关键字
2016-03-16 17:17
489 查看
Javascript 的保留关键字不可以用作变量、标签或者函数名。有些保留关键字是作为 Javascript 以后扩展使用。
abstract arguments boolean break byte
case catch char class* const
continue debugger default delete do
double else enum* eval export*
extends* false final finally float
for function goto if implements
import* in instanceof int interface
let long native new null
package private protected public return
short static super* switch synchronized
this throw throws transient true
try typeof var void volatile
while with yield
JavaScript 对象、属性和方法
您也应该避免使用 JavaScript 内置的对象、属性和方法的名称作为 Javascript 的变量或函数名:
Array Date eval function hasOwnProperty
Infinity isFinite isNaN isPrototypeOf length
Math NaN name Number Object
prototype String toString undefined valueOf
abstract arguments boolean break byte
case catch char class* const
continue debugger default delete do
double else enum* eval export*
extends* false final finally float
for function goto if implements
import* in instanceof int interface
let long native new null
package private protected public return
short static super* switch synchronized
this throw throws transient true
try typeof var void volatile
while with yield
JavaScript 对象、属性和方法
您也应该避免使用 JavaScript 内置的对象、属性和方法的名称作为 Javascript 的变量或函数名:
Array Date eval function hasOwnProperty
Infinity isFinite isNaN isPrototypeOf length
Math NaN name Number Object
prototype String toString undefined valueOf
相关文章推荐
- JavaScript 运算符 和 常用
- JavaScript 的同源策略
- regJS
- js判断地址转向
- js中判断数据为空
- js原型
- 单源最短路径Dijsktra算法
- Javascript 严格模式(use strict)详解
- JavaScript鼠标移动获取坐标
- JSON与XML的区别比较
- javascript运动入门
- 心得20160316
- web技术类书单2016
- js 字符
- Gson 解析JSON数据
- js从头在来
- 高效率去掉js数组中重复项
- 盘点javascript 正则表达式中 中括号的【坑】
- javascript笔记——点击按钮(或超链接)如何跳转到另外一个页面并执行目标页面的js函数
- 运用Gulp压缩文件编译文件。包括css js html image