函数如下,这个函数是定义在view中的,我对php了解不深,请各位指点一下这个函数的具体功能
function showCustomer()
{
var xmlhttp;    
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("tablerefresh").innerHTML=xmlhttp.responseText;
}
}
 
xmlhttp.open("GET","?file=taskmanager&refresh=enable&action=info"+parameter.value,true);
xmlhttp.send(); setTimeout("showCustomer()",5000);}
谢谢大家