strig的原型对象中有哪些属性和方法:
length:返回字符串长度
charAt(index):返回下标为index位置的字符
charCodeAt(index):返回index位置字符的ascii值
concat():字符串拼接
slice():字符串截取
substr():字符串截取
substring():字符串截取
indexOf():查找字符,找到返回下标,没找到返回-1
lastInsexOf():从后往前找
trim():无参数,去掉字符串前后空格
toLowerCase():将字符串转成大写
toUpperCase():将字符串转成小写
search():搜索字符串
replace():替换字符串
match():匹配字符串
split():分隔字符串
04-08
784
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
08-13