textEncoder.encode([input])


UTF-8 对 input 字符串进行编码,并返回包含编码字节的 Uint8Array

【UTF-8 encodes the input string and returns a Uint8Array containing the encoded bytes.】