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/TextEncoder/TextEncoder below:

TextEncoder() - Web API | MDN

MDN Web Docs
  1. 面向开发者的 Web 技术
  2. Web API
  3. TextEncoder
  4. TextEncoder()

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

Filter sidebar

在本文中
  1. TextEncoder
  2. 构造函数
    1. TextEncoder()
  3. 实例属性
    1. encoding
  4. 实例方法
    1. encode()
    2. encodeInto()
在本文中 TextEncoder()

Baseline Widely available

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

TextEncoder() 构造函数总是返回一个新创建的 TextEncoder 对象,该对象将生成具有 UTF-8 编码的字节流。

语法

js

new TextEncoder();
参数

无。

规范 Specification Encoding
# ref-for-dom-textencoder①
浏览器兼容性 参见 Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on 2022年10月11日 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