| index到字符 | index到数字 | 数字到字符 | |
|---|---|---|---|
| 2字节 | str.charAt() | str.charCodeAt() | String.fromCharCode() |
| 4字节 | str.at() | str.codePointAt() | String.fromCodePoint() |
| index到字符 | index到数字 | 数字到字符 | |
|---|---|---|---|
| 2字节 | str.charAt() | str.charCodeAt() | String.fromCharCode() |
| 4字节 | str.at() | str.codePointAt() | String.fromCodePoint() |