如何修复 Internet Explorer 浏览器的 JavaScript 中的 Array indexOf()?
javascriptobject oriented programmingfront end technology更新于 2024/7/23 5:32:17
要修复 Internet Explorer 网络浏览器的 Array.indexOf(),请使用以下 −
jQuery.inArray( value, array [, fromIndex ] )
添加以下内容,
<!--[if lte IE 10]>
让我们在这里看看原型,
<!--[if lte IE 10]>
<script>
if (!Array.prototype.indexOf) {
// add code
}
</script>
<![endif]-->
相关文章
有用资源
javascript 参考教程 - 该教程包含有关 javascript 的更多信息:https://www.cainiaomax.com/javascript/

