1、charAt() 方法可返回指定位置的字符
语法: stringObject.charAt(index)
注释:字符串中第一个字符的下标是 0。如果参数 index 不在 0 与 string.length 之间,该方法将返回一个空字符串。
1、charAt() 方法可返回指定位置的字符
语法: stringObject.charAt(index)
注释:字符串中第一个字符的下标是 0。如果参数 index 不在 0 与 string.length 之间,该方法将返回一个空字符串。