IE
始终遇到问题。
在我的网页中,我将本地JQuery
包括在内:
<script type="text/javascript" src="../jsp/jquery-2.0.2.min.js"></script>
<script type="text/javascript" src="../jsp/jquery-ui-1.10.3.custom.js"></script>
<script type="text/javascript" src="../jsp/init.js"></script>
<script type="text/javascript" src="../jsp/tajweed.js"></script>
<script type="text/javascript" src="../jsp/tajweed-tools.js"></script>
但是,它给出了这些错误:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3)
Timestamp: Thu, 25 Jul 2013 10:17:38 UTC
Message: 'JSON' is undefined
Line: 4
Char: 562
Code: 0
URI: http://localhost/play/jsp/jquery-2.0.2.min.js
Message: 'jQuery' is undefined
Line: 6
Char: 1
Code: 0
URI: http://localhost/play/jsp/jquery-ui-1.10.3.custom.js
Message: Object expected
Line: 37
Char: 1
Code: 0
URI: http://localhost/play/jsp/init.js
Message: Object expected
Line: 2
Char: 1
Code: 0
URI: http://localhost/play/jsp/tajweed.js
答案 0 :(得分:16)
Jquery 2.x明确不支持IE8。
如果您想支持此浏览器,请使用1.x版本。
jQuery 2.x与jQuery 1.x具有相同的API,但不支持 Internet Explorer 6,7或8。