TextDecoderStream.ignoreBOM
TextDecoderStream 接口的只读属性 ignoreBOM 返回一个 boolean,表示是否忽略字节顺序标记(BOM)。
值
一个 boolean,初始值是 false。
示例
js
stream = new TextDecoderStream();
console.log(stream.ignoreBOM); // returns false
规范
| Specification |
|---|
| Encoding Standard # textdecoder-ignore-bom-flag |
浏览器兼容性
BCD tables only load in the browser