技术栈

字符串方法

橙色日落
1 年前
前端·javascript·es6·endswith·字符串方法·startswith
js ES6判断字符串是否以某个字符串开头或者结尾startsWith、endsWithstartsWith:startsWith方法用于检查字符串是否以指定的字符串开头。 endsWith:endsWith方法用于检查字符串是否以指定的字符串结尾。