PresentationConnection object is created, its binaryType IDL attribute MUST be set to the string "arraybuffer" . Upon getting, the attribute MUST return its most recent value (the value it was last set as). Upon setting, the user agent MUST set the IDL attribute to the new value.

注意: binaryType attribute allows authors to control how binary data is exposed to scripts. By setting the attribute to "blob" , binary data is returned in Blob form; by setting it to "arraybuffer" , it is returned in ArrayBuffer form. The attribute defaults to "arraybuffer" . This attribute has no effect on data sent in a string form.

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
binaryType Chrome Yes Edge ≤79 Firefox 51 IE No Opera Yes Safari ? WebView Android No Chrome Android Yes Firefox Android 51 Opera Android Yes Safari iOS ? Samsung Internet Android Yes

图例

完整支持

完整支持

不支持

不支持

兼容性未知 ?

兼容性未知

实验。期望将来行为有所改变。

实验。期望将来行为有所改变。

用户必须明确启用此特征。

用户必须明确启用此特征。

元数据

  • 最后修改: