<script language="javascript">
var xmlhttp;
function createxmlhttprequest(){if(window.ActiveXObject){
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
}else if(window.XMLHttpRequest){
xmlhttp=new XMLHttpRequest();
}
}
把 xmlhttp 定义放到 function 外面.放着 jquery 这样好的类库不用.非要自己去写这些呢??为什么????
var xmlhttp;
function createxmlhttprequest(){if(window.ActiveXObject){
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
}else if(window.XMLHttpRequest){
xmlhttp=new XMLHttpRequest();
}
}
把 xmlhttp 定义放到 function 外面.放着 jquery 这样好的类库不用.非要自己去写这些呢??为什么????
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货