slice-substring-substr-split-splice

一、字符串slice(startIndex, endBeforeIndex) endBeforeIndex < 0,则 endBeforeIndex 为 负数,第二个参数为字符串长度加上负值,之后如果第二个参数大于第一个参数,则返回空字符串。 substring(startIndex, endBef
posted @ 2022-04-12 19:11  し7709  阅读(26)  评论(0编辑  收藏  举报