我對jQuery getScript函數有一個「imho」奇怪的問題。JQuery - getScript在新標籤中打開
$.getScript('jquery_ui.js', function(){});
// this code works fine
<script type="text/javascript" src="http://www.google.com/jsapi?autoload=%7B%22modules%22%3A%5B%7B%22name%22%3A%22feeds%22%2C%22version%22%3A%221%22%7D%5D%7D"></script>
// works fine,too
$.getScript('http://www.google.com/jsapi?autoload=%7B%22modules%22%3A%5B%7B%22name%22%3A%22feeds%22%2C%22version%22%3A%221%22%7D%5D%7D', function(){});
// This code redirect my page.
// But why, oO? This is the same like <script type="text/javascript" src="http://www.google.com/j ...
我該如何解決這個錯誤?
感謝提前
彼得
我的瀏覽器(firefox)正在加載,空洞時間? – Peter 2011-02-27 09:29:28
對不起,你說的對(http://jsbin.com/aqoda3)在Firefox(Windows&Linux),Opera(Linux&Windows)和Safari(Windows)上的表現也很奇怪。它在Chrome(Linux和Windows)和IE6/7/8中正常工作。五,奇怪。 – 2011-02-27 10:08:29