startWithIgnoreCase

上次更新: 2023-08-17
  • 主题:
  • Journeys
    查看有关此主题的更多信息
  • 创建对象:
  • Experienced
    Developer

如果第二个参数是第一个参数的前缀而不考虑大小写,则返回true。

类别

字符串

函数语法

startWithIgnoreCase(<parameters>)

参数

参数 类型
字符串 字符串
前缀 字符串

签名和返回的类型

startWithIgnoreCase(<string>,<string>)

返回布尔值。

示例

startWithIgnoreCase("rowing is great", "RO")

返回真。

在此页面上