2017-09-18 67 views
0

我有一個問題,當我在Windows Server 2008上的IIS 7.5發佈,我得到了以下錯誤:錯誤加載jQuery和CSS

enter image description here

這是我如何使用或充電的jQuery:

<script type="text/javascript" href="https://code.jquery.com/jquery-3.2.1.js" rel="stylesheet"></script> 
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> 
<script>window.jQuery || document.write('<script src="../Scripts/js/jquery-3.2.1.min.js"><\/script>')</script> 

我已經檢查了我的路線,他們都很好,並期待在一些論壇上,我發現自己有一些解決方案,但沒有你說埃羅已經工作

+1

爲什麼你需要多次調用'jquery'? – Lioo

回答

0

r加載Jquery和CSS,這就是所有Jquery theres沒有在該代碼中的CSS,這可能是問題的一部分,加上你在一個非常奇怪的方式加載在Jquery,這可能是造成這個問題。

 
Heres the proper way to load in Jquery: 


            
 
<script src="../Scripts/js/jquery-3.2.1.min.js"></script> 
 
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> 
 
<script src="https://code.jquery.com/jquery-3.2.1.js"></script>
NOTE: All Jquery imports such as this one has to be loaded in inside the <head> tag
+0

我試過了,但我沒有工作 –

+0

您是否有更多的代碼可以幫助我們更好地理解可能發生的事情,或者本網站的用途以及您使用此代碼的內容。 –