TextEncoderStream.writable
TextEncoderStream
接口的只读属性 writable
返回一个 WritableStream
。
值
一个 WritableStream
。
示例
以下示例演示了如何从一个 TextEncoderStream
对象返回一个 WritableStream
。
js
stream = new TextEncoderStream();
console.log(stream.writeable); //a WritableStream
规范
Specification |
---|
Streams Standard # dom-generictransformstream-writable |
浏览器兼容性
BCD tables only load in the browser