2013-07-25 135 views
3

總是有IE問題。IE8中不支持JQuery

在我的網頁我在本地包括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 

我搜索一些主題,例如TOPIC 1TOPIC 2但不成功。

+3

我不明白,爲什麼這個問題已經被低估了。 – beerwin

+1

爲什麼downvote?這是不公平的 –

+0

,因爲你的第一步應該搜索谷歌/搜索。 谷歌:jquery ie8 –

回答

15

Jquery 2.x明確不支持IE8。

如果您要支持此瀏覽器,請使用1.x版本。

the download page

的jQuery 2.x中具有相同的API爲jQuery的1.x中,但不支持 的Internet Explorer 6,7或8