GeQin

导航

2017年5月23日 #

字符串常用方法以及不常用方法总结

摘要: 字符串常用方法: 1.charCodeAt: 返回一个整数,代表指定位置字符的Unicode编码 语法:strObj.charCodeAt(index); 例如:var str='ABC'; str.charCodeAt(0); //结果为65,对应A的Unicode编码 2.fromCharCod 阅读全文

posted @ 2017-05-23 11:16 GeQin 阅读(818) 评论(0) 推荐(1) 编辑