TextEncoder.encoding
只读特性返回
DOMString
containing the name of the encoding algorithm used by the specific encoder.
It can only have the following value
utf-8
.
b = encoder.encoding;
| 规范 | 状态 | 注释 |
|---|---|---|
|
编码
The definition of 'TextEncoder.encoding' in that specification. |
实时标准 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
encoding
|
Chrome 38 | Edge 79 |
Firefox
19
|
IE 不支持 No | Opera 25 | Safari 10.1 | WebView Android 38 | Chrome Android 38 |
Firefox Android
19
|
Opera Android Yes | Safari iOS 10.3 | Samsung Internet Android 3.0 |
完整支持
不支持
实验。期望将来行为有所改变。
见实现注意事项。
TextEncoder
interface it belongs to.
TextEncoder
encoding