Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

我們的志工尚未將此文章翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!

The Transferable interface represents an object that can be transfered between different execution contexts, like the main thread and Web workers.

This is an abstract interface and there isn't any object of this type. It also doesn't define any method or property: it is merely a tag indicating objects that can be used in specific conditions, like to be transfered to a Worker using the Worker.postMessage() method.

The ArrayBuffer and MessagePort implement it.

Properties

The Transferable interface doesn't implement or inherit specific properties.

Methods

The Transferable interface doesn't implement or inherit specific properties.

Specifications

Specification Status Comment
WHATWG HTML Living Standard
The definition of 'Transferable' in that specification.
Living Standard No change from HTML5, though the new CanvasProxy does implement Transferable.
HTML5
The definition of 'Transferable' in that specification.
Recommendation Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes) 4.0 (2.0) 10.0 [1] (Yes) (Yes)
MessagePort ? No support ? ? ?
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support (Yes) 4.0 (2.0) 10.0 [1] (Yes) (Yes)
MessagePort ? No support ? ? ?

[1] Internet Explorer 10 only accepts a single Transferable object as parameter, but not an array.

See also

文件標籤與貢獻者

 此頁面的貢獻者: GrantSolar, hunan-rostomyan, teoli, MHasan, derekenos
 最近更新: GrantSolar,