新增于: v16.6.0
encoding <string> 识别此 TextDecoder 实例支持的 encoding。默认值: 'utf-8'。
options <Object>
fatal <boolean> true 如果解码失败是致命的。
ignoreBOM <boolean> 当 true 时,TextDecoderStream 会在解码结果中包含字节顺序标记。当 false 时,字节顺序标记会从输出中移除。此选项仅在 encoding 为 'utf-8'、'utf-16be' 或 'utf-16le' 时使用。默认值: false。
创建一个新的 TextDecoderStream 实例。
🌐 Creates a new TextDecoderStream instance.