本章節記錄了 JavaScript 所有標準、內建的物件,以及這些物件的方法與屬性。
「全域物件」(或稱作標準內建物件)這個專有名字並非是要和全域物件混著說。在這裡,全域物件是那些在全域範圍裡的物件。而全域物件自身則是關聯到全域範圍裡的 this
運算子(但若是在 ECMAScript 5 的嚴格模式(strict mode)則是不被採用的,即會回傳 undefined
)。 事實上,全域範圍包含了全域物件的屬性,也包含了繼承而來的屬性(如果有的話)。
其他在全域範疇的物件,不是被使用者的腳本建立,就是由主體的應用程式所提供。 主體物件是由 API 參考資料定義的文件決定瀏覽器環境中是否可用。 更多關於 DOM 和 JavaScript 核心的差異,請參考 JavaScript 技術概要。
這些全域屬性會返回一個值;全域屬性本身不擁有任何屬性和函式。
這些全域函式會直接在全域範圍中被呼叫,不用從某個物件取得後呼叫;呼叫後直接回傳結果給執行的人。
這裡所陳列稱為基礎物件,將作為其他所有物件的母物件。包含了一般物件、函式以及錯誤。
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.
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).
Additions to the ECMAScript core for language-sensitive functionalities.