本文共 432 字,大约阅读时间需要 1 分钟。
Return the character code at the index i
. Similar to charAt()
, except it returns the Unicode 16-bit integer representing the character:
返回索引i
处的字符代码。 与charAt()
类似,除了它返回表示字符的Unicode 16位整数:
'Flavio'.charCodeAt(0) //70'Flavio'.charCodeAt(1) //108'Flavio'.charCodeAt(2) //97
Calling toString()
after that will return the hexadecimal number, which you can lookup in Unicode tables like .
之后调用toString()
将返回十六进制数,您可以像在Unicode表中查找该十六进制数。
翻译自:
转载地址:http://ymqgb.baihongyu.com/