21,893
社区成员




try {
xmlhttp = new XMLHttpRequest();
} catch (oc) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (oc) {}
}
你的 xmlHttp = new XMLHttpReqeust(); 写错了
IE 有缓存,你可在 url 中加个随机值
最好是在php 发送阻止缓存的头 header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header ("Pragma: no-cache"); // HTTP/1.0