我检查Firefox加载jQuery。不过,我有一个错误,告诉“$未定义”在萤火虫。
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script type="text/javascript" src="going.js"></script>
而going.js有以下几点。
if ($.browser.webkit) {
$("body").addClass("chrome");
}
我试过$(document).ready(function(){ // my code here });
,但它给出了同样的错误。
谁能告诉我如何解决这个问题?
在此先感谢。
更新: http://jsbin.com/uwopi3/3/edit
请问您可以发布完整的html源代码吗? – 2011-04-09 09:47:51
为什么-1这个问题? – shin 2011-04-09 09:49:47
我也得到了-1。随机向下投票。 – Hussein 2011-04-09 09:52:08