字符串方法

1)slice 参数可以为负

2)substring 参数不能为负

3)concat

4)substr 截取字符串

5)split 分隔字符串

6)replace

7)match

8)search

9)indexOf/lastIndexOf

10)toUpperCase/ toLowerCase

11)str.charAt(i) / str.charCodeAt(i) / String.fromCharCode()

 

posted on 2018-10-26 10:33  myMaria  阅读(87)  评论(0)    收藏  举报

导航