as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

TextDecoder

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 updated: Jul 22, 2026