博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
字符串charCodeAt()方法
阅读量:2502 次
发布时间:2019-05-11

本文共 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/

你可能感兴趣的文章
线程安全
查看>>
Centos7安装tomcat8
查看>>
MySQL基本命令和常用数据库对象
查看>>
poj 1222 EXTENDED LIGHTS OUT(位运算+枚举)
查看>>
秘密:之所以不搞军事同盟,俄罗斯
查看>>
µC/OS-II版本升级指南
查看>>
hibernate中持久化对象的生命周期(三态:自由态,持久态,游离态 之间的转换)...
查看>>
postgres出现Server doesn't listen错误解决办法
查看>>
linux shell学习--awk练习
查看>>
敏捷开发一千零一问系列之十二:敏捷实施的步骤?
查看>>
TCP三次握手机制中的seq和ack
查看>>
java内部类的定义原则
查看>>
2017年11月26日 C#流&&窗体对话框
查看>>
endl与\n的区别
查看>>
进程和线程概念及原理
查看>>
Dubbo超时重试机制带来的数据重复问题
查看>>
注解配置里的几个注解
查看>>
使ie678支持css3伪类选择器的插件
查看>>
题解报告:hdu 1212 Big Number(大数取模+同余定理)
查看>>
POJ 3624 Charm Bracelet
查看>>