字符串endsWith()方法
Check if a string ends with the value of the string passed as parameter.. 检查字符串是否以作为参数传递的字符串的值结尾。 'JavaScript'.endsWith('Script') //true'JavaScript'.endsWith('script') //falseYou can pass a second ...