endsWith

Methods

KISSY.endsWith()
Boolean KISSY.endsWith (str,suffix)
判断 str 是否以 suffix 结尾
Parameters:
  • str (string) – 查找字符串
  • suffix (string) – 后缀字符串
Returns:

str 是否以 suffix 结尾

Return type:

boolean