Skip to content

JavaScript标准内置对象 ​

重要通知

基本概况 ​

标准内置对象(built-in object),即由 ECMAScript 实现指定和提供的对象。

值属性 ​

Infinity ​

NaN ​

undefined ​

globalThis ​

全局对象,Web(window、self、frames)、Web Workers(self)、Node.js(global)

函数属性 ​

包括字符串编码与解码函数、等。

eval() ​

uneval() ​

isFinite() ​

isNaN() ​

parseFloat() ​

parseInt() ​

encodeURI() ​

decodeURI() ​

encodeURIComponent() ​

decodeURIComponent() ​

escape() ​

unescape() ​

基本对象 ​

Object ​

Function ​

Boolean ​

Symbol ​

错误对象 ​

  • Error
  • AggregateError
  • EvalError
  • InternalError
  • RangeError
  • ReferenceError
  • SyntaxError
  • TypeError
  • URIError
throw new Error('error');

数字和日期对象 ​

  • Number:
  • BigInt:表示大于 2^53 - 1 的整数。
  • Math:
  • Date:

字符串 ​

  • String:
  • RegExp:

可索引的集合对象 ​

表示按照索引值来排序的数据集合,包括数组Array和类型数组TypedArray,以及类数组结构的对象。

  • Array:
  • Int8Array:
  • Uint8Array:
  • Uint8ClampedArray:
  • Int16Array:
  • Uint16Array:
  • Int32Array:
  • Uint32Array:
  • Float32Array:
  • Float64Array:
  • BigInt64Array:
  • BigUint64Array:

使用键的集合对象 ​

  • Map:
  • Set:
  • WeakMap:
  • WeakSet:

结构化数据 ​

表示和操作结构化的缓冲区数据,或使用 JSON (JavaScript Object Notation)编码的数据。

  • ArrayBuffer:
  • SharedArrayBuffer:
  • Atomics:
  • DataView:
  • JSON:

控制抽象对象 ​

  • Promise:
  • Generator:
  • GeneratorFunction:
  • AsyncFunction:

反射 ​

Reflect ​

Proxy ​

国际化 ​

  • Intl:
  • Intl.Collator:
  • Intl.DateTimeFormat:
  • Intl.ListFormat:
  • Intl.NumberFormat:
  • Intl.PluralRules:
  • Intl.RelativeTimeFormat:
  • Intl.Locale:

WebAssembly ​

  • WebAssembly:
  • WebAssembly.Module:
  • WebAssembly.Instance:
  • WebAssembly.Memory:
  • WebAssembly.Table:
  • WebAssembly.CompileError:
  • WebAssembly.LinkError (en-US):
  • WebAssembly.RuntimeError:

Released under the MIT License.