类:ReadableStreamDefaultReader
\Class: ReadableStreamDefaultReader
版本历史
| 版本 | 变更 |
|---|---|
| v18.0.0 | 这个类现在暴露在全局对象上。 |
| v16.5.0 | 新增于: v16.5.0 |
默认情况下,不带参数调用 readableStream.getReader() 将返回 ReadableStreamDefaultReader 的实例。默认读取器将通过流传递的数据块视为不透明值,这允许 <ReadableStream> 通常使用任何 JavaScript 值。
\By default, calling readableStream.getReader() with no arguments
will return an instance of ReadableStreamDefaultReader. The default
reader treats the chunks of data passed through the stream as opaque
values, which allows the <ReadableStream> to work with generally any
JavaScript value.