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