主页
JS 参考手册
JavaScript String endsWith() 方法
tryjsref_endswith
运行 ❯
×
更改方向
保存代码
更改主题
单击该按钮以检查字符串是否以指定值结尾。
试一试
注意:
IE 11(及更早版本)不支持 endsWith() 方法。