整理几个常用的字符串API
NO1:str.indexOf();
NO2:str.repeat();
NO3:str.includes();
NO4:str.concat();
NO5:str.endsWith();
NO6:str.match();
NO7:str.lastIndexOf();返回字符对应的下标值;
NO8:str.chatAt();
NO9:str.startWith();
NO10:str.substring();返回某一下标范围对应的字符串;
NO11:str.trim();去掉字符串两边的空格;
NO12:str.trimRight();去掉字符串右边的空格;
NO13:str.trimLeft();去掉字符串左边的空格;
NO14:str.toLowerCase();