function startRequest() {
var url = "myurl?time="+ (new Date()).getTime();
createXMLHttpRequest();
xmlhttp.open("GET", url, false);
if (navigator.userAgent.indexOf(\"MSIE\") != -1) {
xmlhttp.onreadystatechange = processRequest; //IE
} else {
xmlhttp.onreadystatechange = processRequest(); //Netscape FF
}
xmlhttp.send(null);
}
兄弟,你的问题还没解决呢啊,会不会是浏览器缓存的问题,你加个时间戳试试看吧。
var url = "myurl?time="+ (new Date()).getTime();
createXMLHttpRequest();
xmlhttp.open("GET", url, false);
if (navigator.userAgent.indexOf(\"MSIE\") != -1) {
xmlhttp.onreadystatechange = processRequest; //IE
} else {
xmlhttp.onreadystatechange = processRequest(); //Netscape FF
}
xmlhttp.send(null);
}
兄弟,你的问题还没解决呢啊,会不会是浏览器缓存的问题,你加个时间戳试试看吧。
这句好像有问题,第三个参数为false时,是同步执行,为true时才是异步执行,然后才能在状态改变时调用你的方法,你试试看,可对?
用true也不行。不过谢谢你^-^