检查字符串是否以指定的后缀结尾
要检查的字符串
后缀字符串
如果字符串以指定的后缀结尾则返回true,否则返回false
endsWith('userService', 'Service') // true Copy
endsWith('userService', 'Service') // true
endsWith('userController', 'Service') // false Copy
endsWith('userController', 'Service') // false
检查字符串是否以指定的后缀结尾