- 作用
Indexof,lastIndexOf,substring,split,substr等方式是用于截取,操作字符串,数组的。
-
Indexof

-
lastIndexof
 -
substring

-
substring和lastindexof结合使用

-
split

总结:记录一下,健忘。
本文详细介绍了JavaScript中常用的字符串操作方法,包括Indexof、lastIndexOf、substring、split和substr等,通过实例展示了这些方法如何帮助开发者高效地处理字符串和数组。
Indexof,lastIndexOf,substring,split,substr等方式是用于截取,操作字符串,数组的。
Indexof

lastIndexof

substring

substring和lastindexof结合使用

split

总结:记录一下,健忘。
632

被折叠的 条评论
为什么被折叠?