3
我的AJAX不工作,我不明白爲什麼。我在想什麼?ReferenceError:xmlhttp沒有定義
的ReferenceError:未定義XMLHTTP @ javascript.js:5
function insapts(pin){
if (window.XMLHttpRequest){ xmlhttpp=new XMLHttpRequest(); }else{ xmlhttpp=new ActiveXObject("Microsoft.XMLHTTP"); }
xmlhttpp.onreadystatechange=function(){
if(xmlhttpp.readyState==4 && xmlhttpp.status==200){
document.getElementById('apttimeins').innerHTML = xmlhttp.responseText;
}
}
var url = "bridge3.php?pin="+pin;
xmlhttpp.open("GET",url,false);
xmlhttpp.send(null);
}
我知道我檢查,像15次....... –
我能理解。一個新鮮的一雙眼睛總是有益的:) – karthikr