endsWith

endsWith

> 函数列表

判断字符串 string 是否以字符串 suffix 结尾。

参数
返回值
示例

endsWith("Bonjour", "jour") // true endsWith("Bonjour", "Bon") // false

另请参阅

startsWith