charCodeAt和charAt

获取字符unicode编码

Posted by Lan on December 24, 2019

charCodeAt和charAt两个方法的用法

  • charCodeAt(ind) 获取指定位置的字符Unicode编码
  • charAt(ind) 获取长度为1的指定位置子字符串,说白了就是获取某位置的个字母