当我打开我的网页使用jQuery的,我得到以下错误:jQuery的错误在启动时
Uncaught TypeError: Cannot call method 'call' of undefined
jQuery.jQuery.fn.jQuery.ready test.html:282
(anonymous function) test.html:15
jQuery.jQuery.extend.ready
这上面追查到
ready: function(fn) {
// Attach the listeners
jQuery.bindReady();
// If the DOM is already ready
if (jQuery.isReady) {
// Execute the function immediately
fn.call(document, jQuery);
^^^^^^^^^^^^
// Otherwise, remember the function for later
} else if (readyList) {
// Add the function to the wait list
readyList.push(fn);
}
FN是不确定的......有我能看到的其他症状并不是我指出的问题。我引用了jquery.js的本地副本。
<script src="js/jquery-1.4.4.js" type="text/javascript"></script>
使用谷歌的CDN并没有帮助..不能想象我打这个第一人......
任何人只要有三分球,帮助新手?
在此先感谢, 雅
发布您的html页面的源代码,包括您正在执行的所有脚本。你是否使用除jQuery之外的另一个JS库? – 2010-12-17 23:07:36
您在哪里以及如何定义fn函数作为fn传递? – Javi 2010-12-17 23:09:58