startWith startWith
如果第二个参数是第一个参数的前缀,则返回迟谤耻别。
类别
字符串
函数语法
startWith(<parameters>)
参数
参数
            类型
          字符串
            字符串
          前缀
            字符串
          签名和返回的类型
startWith(<string>,<string>)
返回布尔值。
示例
startWith("Hello World", "Hello")
返回真。
startWith("Hello World", "World")
返回假。
recommendation-more-help
            
          b22c9c5d-9208-48f4-b874-1cefb8df4d76