JavaScript 指南展示如何使用 JavaScript and gives an overview of the language. If you need exhaustive information about a language feature, have a look at the JavaScript 参考 .
此指南被分为几章节:
关于此指南 关于 JavaScript JavaScript 和 Java ECMAScript 工具 Hello World
基本句法 & 注释 声明 变量作用域 Variable hoisting 数据结构和类型 Literals
if...else switch try / catch / throw 错误对象
if...else
switch
try
catch
throw
for while do...while break / continue for..in for..of
定义函数 调用函数 函数作用域 闭包 自变量 & parameters 箭头函数
Assignment & 比较 算术运算符 Bitwise & 逻辑运算符 条件 (三元) 运算符
Number object Math object Date object
Number
Math
Date
字符串文字 String object 模板文字 国际化 正则表达式
String
Arrays Typed arrays
Map WeakMap Set WeakSet
Map
WeakMap
Set
WeakSet
对象和特性 创建对象 定义方法 Getter and setter
基于原型的 OOP 创建对象层次结构 继承
Guarantees Chaining 错误传播 Composition Timing
Iterators Iterables 生成器
Proxy Handlers and traps Revocable Proxy Reflect
Proxy
Reflect
导出 导入 默认导出 重命名特征 聚合模块 动态模块加载