这段代码在Internet Explorer中无法工作。有任何替代方案吗?
"abcde".includes("cd")
这段代码在Internet Explorer中无法工作。有任何替代方案吗?
"abcde".includes("cd")
var myString = 'this is my string';
!!~myString.indexOf('string');
// -> true
!!~myString.indexOf('hello');
// -> false
这里是两个运算符的解释 (!! 和 ~ )
JavaScript 中的 !! (not not) 运算符是什么?
https://www.joezimjs.com/javascript/great-mystery-of-the-tilde/