最佳答案
除了提高可读性之外,includes比 indexOf有什么优势吗? 它们看起来和我一样。
有什么区别
var x = [1,2,3].indexOf(1) > -1; //true
这个呢?
var y = [1,2,3].includes(1); //true