请知悉:本文最近一次更新为 11年 前,文中内容可能已经过时。
str="test";
str.indexOf(value:String, [startIndex:Number]); 查找字符串,类似的lastIndexOf为倒找字符串
str.substr(start, length); 截取字符串

参考来源:https://www.cnblogs.com/xuebin/articles/1296837.html


如您从本文得到了有价值的信息或帮助,请考虑扫描文末二维码捐赠和鼓励。

尊重他人劳动成果。转载请务必附上原文链接,我将感激不尽。


与《JavaScript-字符串相关函数》相关的博文:


留言

avatar
😀
😀😁😂😅😭🤭😋😘🤔😰😱🤪💪👍👎🤝🌹👌