startWithIgnoreCase

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

类别

字符串

函数语法

startWithIgnoreCase(<parameters>)

参数

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

签名和返回的类型

startWithIgnoreCase(<string>,<string>)

返回布尔值。

示例

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

返回true。

在此页面上