as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容

构造函数

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
最后修改于 2026年10月26日