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