function ajaxFunction() {
var xmlHttp;
try {
// Firefox, Opera 8.0+, Safari
xmlHttp = new XMLHttpRequest();
}
catch (e) {
// Internet Explorer
try {
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e) {
try {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e) {
alert("您的浏览器不支持AJAX!");
return false;
}
}
}
xmlHttp.onreadystatechange = function () {
if (xmlHttp.readyState == 4) {
//document.myForm.time.value = xmlHttp.responseText;
document.getElementById("name").value = xmlHttp.responseText;
}
}
xmlHttp.open("GET", "time.aspx", true);
xmlHttp.send(null);
}
</script>
var xmlHttpfunction showCustomer(str){ xmlHttp=GetXmlHttpObject();if (xmlHttp==null) { alert ("Y...
有时候一些项目中会使用类似如下的方式覆盖掉console对象:var console = {}; console.log = function(){}; console.info&nbs...