2013-05-04 70 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