2013-05-04 71 views
0

我正在關注jQuery的教程和課程。在視頻教程中,代碼很可能是相同的,但在Firefox的末尾,它將ReferenceError: jQuery is not defined扔在Firebug控制檯中。jQuery未在Firefox中定義錯誤

這是我的全部代碼 -

<!DOCTYPE html> 
<html> 
    <head> 
     <title>Day 1 jQuery</title> 
     <style> 
     li {color:blue;} 
     </style> 
    </head> 
    <body> 
     <ul> 
      <li>List item 1</li> 
      <li>List item 2</li> 
      <li>List item 3</li> 
      <li>List item 4</li> 
      <li>List item 5</li> 
     </ul> 
     <srcipt src="http://code.jquery.com/jquery-latest.js"></script> 
     <script> 
     jQuery(document).ready(function(){ 
     var list = jQuery('ul li'); 
     console.log(list); 
     }); 
     </script> 
    </body> 
</html> 

我也看了,但沒有幫助:$ is not defined error in firefox with jquery

教程鏈接 - https://tutsplus.com/course/30-days-to-learn-jquery/

+1

只是一個錯字應該讀

1

更新:

<srcipt src="http://code.jquery.com/jquery-latest.js"></script> 

隨着

<script src="http://code.jquery.com/jquery-latest.js"></script> 
+0

Thx bro讓我知道我是誰錯了:) +1 – Trialcoder 2013-05-04 11:19:29

+0

@Trialcoder,謝謝 – 2013-05-04 12:21:39

相關問題