1、str.charAt(index)返回字符串
2、str.charCodeAt(index)返回字符串的Unicode编码
3、String.fromCharCode()根据Unicode编码返回字符串
4、str.indexOf()返回字符串第一次出现的位置
5、str.lastIndexOf()从右往左找字符串,找不到返回-1
6、截取字符串
1) str.substring(Start,end)两个参数都为正数
2) str.slice(Start,end)两个参数可正可负,负值代表从右截取
3) str.substr(Start,length) Start参数可正可负,负数代表从右截取
8、字符串分割成数组
1) str.split()参数1指定字符串或者正则,参数2指定数组的最大长度
9、str.replace()返回替换后的字符串
10、str.match()正则匹配