&引用;未捕获引用错误:未定义jquery";-但事实确实如此
我已经准备好了一些类似的问题,并验证了jquery是包含的第一个脚本&引用;未捕获引用错误:未定义jquery";-但事实确实如此,jquery,Jquery,我已经准备好了一些类似的问题,并验证了jquery是包含的第一个脚本 // this test confirms that jquery is defined if (typeof jQuery == 'undefined') { alert('jquery not defined'); } // (this is being alerted) else { alert( 'jquery is defined'); } // this is what I want to ach
// this test confirms that jquery is defined
if (typeof jQuery == 'undefined') {
alert('jquery not defined');
}
// (this is being alerted)
else { alert( 'jquery is defined'); }
// this is what I want to achieve (to begin with)
jquery("#free-signup").css( 'display', 'none' );
而jquery似乎是被定义的。。。我做错了什么 JavaScript区分大小写。应使用正确的对象名称:
// v
jQuery("#free-signup").css( 'display', 'none' );
或快捷方式:
$("#free-signup").css( 'display', 'none' );
JavaScript区分大小写。应使用正确的对象名称:
// v
jQuery("#free-signup").css( 'display', 'none' );
或快捷方式:
$("#free-signup").css( 'display', 'none' );