整理几个常用的字符串API

NO1:str.indexOf();

整理几个常用的字符串API插图

NO2:str.repeat();整理几个常用的字符串API插图1

NO3:str.includes();

整理几个常用的字符串API插图2

NO4:str.concat();整理几个常用的字符串API插图3

NO5:str.endsWith();整理几个常用的字符串API插图4

NO6:str.match();

整理几个常用的字符串API插图5

NO7:str.lastIndexOf();返回字符对应的下标值;

整理几个常用的字符串API插图6

NO8:str.chatAt();

整理几个常用的字符串API插图7

NO9:str.startWith();整理几个常用的字符串API插图8

NO10:str.substring();返回某一下标范围对应的字符串;整理几个常用的字符串API插图9

NO11:str.trim();去掉字符串两边的空格;

整理几个常用的字符串API插图10

NO12:str.trimRight();去掉字符串右边的空格;

整理几个常用的字符串API插图11

NO13:str.trimLeft();去掉字符串左边的空格;

整理几个常用的字符串API插图12

NO14:str.toLowerCase();

整理几个常用的字符串API插图13

标签