js中字符串操作
1 2 3 4 5 6 7 8 9 10 11
| var s="hello,world" s.charAt(0) s.substring(1,4) s.slice(1,4) s.slice(-3) s.indexOf("l") s.lastIndexOf("l") s.indexOf("l",3) s.split(',') s.replace("h","H") s.toUpperCase()
|
本文标题:js对字符串操作
文章作者:霖
发布时间:2021年01月16日 - 12时00分
最后更新:2021年01月16日 - 12时07分