我已經使用內setTimeout的,即下面的JavaScript,但我有問題:setTimeout的使用問題
function setUrl()
{
// Get system URL details
var url_path = new String(window.location.pathname);
var new_url;
new_url = window.location.host;
}
setTimeout("setValue('ONE_UP_URL',new_url);",2000);
}
但由於某些原因,我得到了錯誤:「NEW_URL」是不確定的。
將非常感謝您的通話使用的setTimeout這個JavaScript函數的幫助。
謝謝。
+1的額外細節。 – ChaosPandion 2009-10-21 04:00:02