as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
原生
Skip to main content

Constructors

new TextDecoder()

new TextDecoder(label, options): TextDecoder

Parameters

label?
string | undefined
options?
TextDecoderOptions | undefined

Returns

TextDecoder

Properties

encoding

readonly encoding: string

fatal

readonly fatal: boolean

ignoreBOM

readonly ignoreBOM: boolean

Methods

decode()

decode(input?: BufferSource | undefined, options?: TextDecodeOptions | undefined): string

Parameters

input?
BufferSource | undefined
options?
TextDecodeOptions | undefined

Returns

string
Last modified on November 4, 2026