TypeError:属性'$'

时间:2013-03-05 19:56:18

标签: jquery debugging quicksand

我的jQuery出错了。

Uncaught TypeError: Property '$' of object [object Object] is not a function jquery.custom.js:19


portfolio_quicksand jquery.custom.js:19
(anonymous function) jquery.custom.js:71
l jquery.js:2
c.fireWith jquery.js:2
v.extend.ready jquery.js:2
A jquery.js:2

这是javascript的第19行。它看起来很好。任何想法都会很棒!     $ filter = $('。filter li.active a')。attr('class');

我正在调用jQuery,如下所示......

 jQuery(document).ready(function() {
 }

2 个答案:

答案 0 :(得分:0)

尝试:

(文档)$。就绪(函数(){...})

$只是jQuery(文档).ready(function(){}

的捷径

您确定在自定义脚本中使用jQuery或Java吗?第19行?

答案 1 :(得分:0)

你能试试这个jQuery(document).ready(function($) { //your code here });

吗?
相关问题