IE不支持Array的includes函数
如果需要判断数组是否包含指定元素,用jQuery的$.inArray('val', array), 若包含,返回下标,否则返回-1
参考资源:
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
如果需要判断数组是否包含指定元素,用jQuery的$.inArray('val', array), 若包含,返回下标,否则返回-1
参考资源:
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/includes