A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/zh-CN/docs/Web/API/TextEncoderStream/encoding below:

TextEncoderStream.encoding - Web API | MDN

MDN Web Docs
  1. 面向开发者的 Web 技术
  2. Web API
  3. TextEncoderStream
  4. TextEncoderStream.encoding

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

Filter sidebar

在本文中
  1. Encoding API
  2. TextEncoderStream
  3. 构造函数
    1. TextEncoderStream()
  4. 实例属性
    1. encoding
    2. readable
    3. writable
  5. Encoding API 的相关页面
    1. TextDecoder
    2. TextDecoderStream
    3. TextEncoder
  6. 指南
    1. Encoding API 编码
在本文中 TextEncoderStream.encoding

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2022.

TextEncoderStream 接口的只读属性 encoding 返回一个字符串,其中包含当前 TextEncoderStream 对象使用的编码算法的名称。

值

一个使用 utf-8 编码的字符串。

示例

以下示例演示如何从一个 TextEncoderStream 对象返回 encoding。

js

stream = new TextEncoderStream();
console.log(stream.encoding);
规范 Specification Encoding
# dom-textencoder-encoding
浏览器兼容性 Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on 2022年10月1日 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4