Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
&引用;未捕获引用错误:未定义jquery";-但事实确实如此_Jquery - Fatal编程技术网

&引用;未捕获引用错误:未定义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

我已经准备好了一些类似的问题,并验证了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 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' );