2017-06-19 14 views

回答

-1

試試這個(考慮xhttp是Request對象:

if (xhttp.readyState == 4 && xhttp.status == 200) { 
    if(xhttp.ResponseText == 'error') 
    { 
     window.location = "http://www.example.com"; 
    } 
} 
相關問題