PresentationConnection:binaryType 属性
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
当创建一个 PresentationConnection 对象时,其 binaryType IDL 属性必须设置为字符串 "arraybuffer"。在获取时,该属性必须返回其最近的值(即上次设置的值)。在设置时,用户代理必须将 IDL 属性设置为新的值。
备注:binaryType 属性允许作者控制如何将二进制数据暴露给脚本。通过将该属性设置为 "blob",二进制数据将以 Blob 形式返回;通过将其设置为 "arraybuffer",它将以 ArrayBuffer 形式返回。该属性默认为 "arraybuffer"。此属性对以字符串形式发送的数据没有影响。