我在this page上遇到問題,由於jQuery佔位符腳本的原因,在Chrome和IE中出現'jQuery is not defined'錯誤。jquery placeholder plugin'jQuery is not defined'
- jQuery在插件腳本之前聲明。
- 有與$沒有衝突的,據我可以告訴
我真的難倒就這一個,任何意見將是巨大的。乾杯
我在this page上遇到問題,由於jQuery佔位符腳本的原因,在Chrome和IE中出現'jQuery is not defined'錯誤。jquery placeholder plugin'jQuery is not defined'
我真的難倒就這一個,任何意見將是巨大的。乾杯
從http://www.environment.nsw.gov.au/js/decc/ignitionSuite.js來的問題,其中包括jQuery和動態jquery.placeholder在iframe:由於腳本動態包含
jqPath = "http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"
jqPlaceholderPath = "http://www.environment.nsw.gov.au/js/decc/jquery.placeholder.min.js"
...
loadjscssfile(jqPath, "js");
...
loadjscssfile(jqPlaceholderPath, "js");
,不需要瀏覽器阻斷執行,直到第一一個負載。這意味着完全可以讓jquery.placeholder在jQuery之前先加載,並且發生錯誤。
你確定jquery腳本實際上被加載了嗎? –
我看不到這樣的錯誤。 – Brad
是的,在所有的嚴肅性中,頁面上都沒有錯誤。 – Fresheyeball