TextDecoder
TextDecoder
构造函数
new TextDecoder()
new TextDecoder(
label,options): TextDecoder
参数
label?
string | undefined
options?
TextDecoderOptions | undefined
返回值
属性
encoding
readonlyencoding:string
fatal
readonlyfatal:boolean
ignoreBOM
readonlyignoreBOM:boolean
方法
decode()
decode(input?: BufferSource
| undefined, options?:TextDecodeOptions | undefined):string
参数
input?
BufferSource | undefined
options?
TextDecodeOptions | undefined
返回值
字符串
Last updated: 2026年7月22日

