String.endsWith - Prototype JavaScript 框架

Xunxin Prototype API

endsWith
1.5.1

endsWith(substring) -> Boolean

检查字符串是否以 substring 作为结尾。

样例

'slaughter'.endsWith('laughter') 
// -> true