判断题
正确
endsWith():返回布尔值,表示参数字符串是否在原字符串的尾部。
判断题endsWith():返回布尔值,表示参数字符串是否在原字符串的尾部。
let s=’Hello world!’;s.startsWith(’Hello’)结果返回true。
判断题let s=’Hello world!’;s.startsWith(’Hello’)结果返回true。
includes():返回布尔值,表示是否找到了参数字符串。
判断题includes():返回布尔值,表示是否找到了参数字符串。