简体中文
外观
TextEncoder
encoding
encoding 属性是编码器使用的编码。
字符串,总是 'utf-8'。
'utf-8'
TypeError
console.log(new TextEncoder().encoding);
结果:输出 utf-8。未在模拟器验证。
utf-8
和 Web 相同。
TextDecoder.encoding