构造函数
new TextDecoder()
new TextDecoder(label, options): TextDecoder
参数
label?
string | undefined
options?
TextDecoderOptions | undefined
返回值
TextDecoder属性
encoding
readonly encoding: string
fatal
readonly fatal: boolean
ignoreBOM
readonly ignoreBOM: boolean
方法
decode()
decode(input?: BufferSource | undefined, options?: TextDecodeOptions | undefined): string
参数
input?
BufferSource | undefined
options?
TextDecodeOptions | undefined
返回值
string

