$不是一个功能 [英] $ is not a function
本文介绍了$不是一个功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<script type="text/javascript" src="framework/resources/jquery-1.5.1.js"></script>
<script type="text/javascript">
var blink = function() {
$('#blink').toggle();
};
</script>
引发错误
$不是函数
$ is not a function
当使用在jQuery之后引用的外部JavaScript文件时我似乎只能使用 ready
函数中的jQuery。我是否应该知道以这种方式使用jQuery?
When using an external JavaScript file which gets referred after jQuery I can only seem to use jQuery within the ready
function. Is there something I should know about using jQuery in this manner?
推荐答案
该错误意味着未加载jquery
That error means jquery isn't loaded
这篇关于$不是一个功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文