我已经准备了一些类似的问题,并验证了 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 似乎确实被定义了......我做错了什么?!