textEncoder.encode([input])


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

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