我正在使用以下代码:
<html>
<head>
<title></title>
<script src="jquery-3.2.0.js"></script>
</head>
<body>
<script type="text/javascript">
$(window).load(function () {
alert('Window loaded');
});
$(document).ready(function () {
alert('DOM Loaded and ready');
});
</script>
</body>
</html>
这很简单,但我却遇到了错误。
"Object doesn't support property or method 'indexOf'".
我正在使用Internet Explorer
这是什么原因呢?
inArray
方法。 - Carsten Løvbo Andersen