js跨域調用webservice時,請求服務超時,提示方法

var havereturn=false; function ontimeout(){   if(!havereturn){     //還沒返回,愛咋咋地     alert("鏈接超時");     havereturn=true;     //也許有什麼辦法讓xmlhttp停下來,能夠寫在這,不停也不要緊。   } } function doYourAjax(){//------你的ajax
相關文章
相關標籤/搜索