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/
只是一个错字应该读
更新:
随着
来源
2013-05-04 11:16:49
Thx bro让我知道我是谁错了:) +1 – Trialcoder 2013-05-04 11:19:29
@Trialcoder,谢谢 – 2013-05-04 12:21:39
为了减轻在崇高错别字,有一个优秀的包装:https://github.com/SublimeLinter/SublimeLinter
来源
2013-05-04 11:51:58
thx兄弟的信息:) – Trialcoder 2013-05-04 11:52:48