我不明白我在上FF7window.location.href(VAR)在FF7奇怪的行爲
的問題,我有一個返回JSON對象(jQuery的)一個Ajax調用。
if(data.result=='ok') {
var url = baseURL + "azioni/makeForm/" + data.actcode + "/DIA/" + data.az_id;
console.log(url);
window.location.href(url);
}
不要在所有的工作,但是這一個作用:
if(data.result=='ok') {
var url = baseURL + "azioni/makeForm/" + data.actcode + "/DIA/" + data.az_id;
console.log(url);
window.location.href = 'http://www.google.com/';
window.location.href(url);
}
爲什麼?
請注意,console.log完美工作,並輸出正確的網址!
哇,我是在b my我的頭,因爲一個非常愚蠢的錯誤,謝謝! – 0plus1
沒問題...很高興我可以幫忙! –