字符串的内置方法

86 阅读1分钟

concat(合并)
substr()
indexof()
lastIndexOf()
splic(剪切)
substring()
replace(替换)
split(字符串转数组)
match()
charAt(通过下标找元素)
toUpperCase(大写)
toLowerCase(小写)