翻譯不完整。請協助 翻譯此英文文件。
本章節記錄了 JavaScript 所有標準、內建的物件,以及這些物件的方法與屬性。
「全域物件」(或稱作標準內建物件)這個專有名字並非是要和全域物件混著說。在這裡,全域物件是那些在全域範圍裡的物件。而全域物件自身則是關聯到全域範圍裡的 this
運算子(但若是在 ECMAScript 5 的嚴格模式(strict mode)則是不被採用的,即會回傳 undefined
)。 事實上,全域範圍包含了全域物件的屬性,也包含了繼承而來的屬性(如果有的話)。
其他在全域範疇的物件,不是被使用者的腳本建立,就是由主體的應用程式所提供。 主體物件是由 API 參考資料定義的文件決定瀏覽器環境中是否可用。 更多關於 DOM 和 JavaScript 核心的差異,請參考 JavaScript 技術概要。
標準物件分類
數值屬性
These global properties return a simple value; they have no properties or methods.
函數屬性
這些全域函式會直接在全域範圍中被呼叫,不用從某個物件取得後呼叫;呼叫後直接回傳結果給執行的人。
eval()
uneval()
isFinite()
isNaN()
parseFloat()
parseInt()
decodeURI()
decodeURIComponent()
encodeURI()
encodeURIComponent()
escape()
unescape()
基礎物件
These are the fundamental, basic objects upon which all other objects are based. This includes objects that represent general objects, functions, and errors.
Object
Function
Boolean
Symbol
Error
EvalError
InternalError
RangeError
ReferenceError
SyntaxError
TypeError
URIError
數字與日期
These are the base objects representing numbers, dates, and mathematical calculations.
文字處理
These objects represent strings and support manipulating them.
具索引的集合
These objects represent collections of data which are ordered by an index value. This includes (typed) arrays and array-like constructs.
Array
Int8Array
Uint8Array
Uint8ClampedArray
Int16Array
Uint16Array
Int32Array
Uint32Array
Float32Array
Float64Array
具鍵值的集合
These objects represent collections which use keys; these contain elements which are iterable in the order of insertion.
向量集合
SIMD vector data types are objects where data is arranged into lanes.
SIMD
SIMD.Float32x4
SIMD.Float64x2
SIMD.Int8x16
SIMD.Int16x8
SIMD.Int32x4
SIMD.Uint8x16
SIMD.Uint16x8
SIMD.Uint32x4
SIMD.Bool8x16
SIMD.Bool16x8
SIMD.Bool32x4
SIMD.Bool64x2
結構化資料
These objects represent and interact with structured data buffers and data coded using JavaScript Object Notation (JSON).
控制抽象化物件
Reflection
國際化
Additions to the ECMAScript core for language-sensitive functionalities.
WebAssembly
WebAssembly
WebAssembly.Module
WebAssembly.Instance
WebAssembly.Memory
WebAssembly.Table
WebAssembly.CompileError
WebAssembly.LinkError
WebAssembly.RuntimeError