爲什麼jQuery不能在Opera和Chrome中工作?jQuery動態CSS變化
<script language="JavaScript">
$('link[href="includes/styles.css"]').attr("href", "includes/new_styles.css");
$('link[href="includes/jmesa/jmesa.css"]').attr("href", "includes/jmesa/new_jmesa.css");
</script>
它與其他瀏覽器?你得到的錯誤是哪一個? – nowhere 2013-02-15 08:56:51
它在FF和IE中很好用。 未捕獲的異常:TypeError:'o.find'不是函數 在http:// localhost:8080 /.../ jquery-1.3中的<匿名函數:find>(E)中的第12行第5629列處引發錯誤.2.min.js: o.find(E,this [0],F); 在http:// localhost:8080 /.../ jquery-1.3.2.min.js: return o(H)中的(E,H)的第12行,第681列調用。在http:// localhost:8080 /.../ jquery-1.3.2.min.js: 中的<匿名函數:l。$>(E,F)中查找從第12行第128列調用的(E) 返回新的o.fn.init(E,F) –
AkiraYamaokaNC
2013-02-15 09:04:45
@krshekhar再次;不要爲此使用代碼格式。 'jQuery','Opera'和'Chrome'是產品名稱 - 它們不是*代碼。他們不需要以*任何*方式突出顯示,請。 – 2013-02-15 09:08:00