我的代码在 Firefox 中有效,但在 IE 上无效这是我的脚本:
<script type="text/javascript">
var request = new XMLHttpRequest();
function saseangol() {
request.open ("GET", "saseangol.html",true);
request.onreadystatechange = function() {
if(request.readyState == 4) {
document.getElementById('cont').innerHTML = request.responseText;
}
}
request.send(null);
}
var request = new XMLHttpRequest();
function sase() {
request.open ("GET", "sase.html",true);
request.onreadystatechange = function() {
if(request.readyState == 4) {
document.getElementById('cont').innerHTML = request.responseText;
}
}
request.send(null);
}
</script>
有人可以帮我吗?