知识点------字符串剪切-substring() | substr() | slice()

substring() | substr() | slice() 1、substring() substring()方法返回一个索引和另外一个索引之间的字符串,语法以下:this str.substring(indexStart, [indexEnd])prototype 下面有六点须要注意:code substring()从提取的字符indexStart可达但不包括 indexEnd 若是ind
相关文章
相关标签/搜索