值传递问题 - -报错也算啊?? 帮帮我搞定这个xmlHttp对象怎么处理吧。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 xmlHttp.onreadystatechange = this.handlereadychange(); //去掉后面的括号, 这里是赋值this.functions; //加上括号, 这里是调用 function New(aClass,aparams){ function _new() { if(aClass.defulte) { aClass.defulte.apply(this,aparams); } } _new.prototype = aClass; return new _new();}var ajax ={ defulte:function(web,func) { this.web = web; this.functions = func; }, createXMLHttpRequest: function() { var xmlHttp; if (window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest(); } return xmlHttp; }, handlereadychange:function() { if(xmlHttp.readystate == 4) //xmlhttp未定义 { if(xmlHttp.status == 200) { this.functions; } } }, getSend:function() { var xmlHttp = this.createXMLHttpRequest(); //只要句柄 xmlHttp.onreadystatechange = this.handlereadychange(); xmlHttp.open("GET", this.web , true); xmlHttp.send(null); }} function New(aClass,aparams) { function _new() { if(aClass.defulte) { aClass.defulte.apply(this,aparams); } } _new.prototype = aClass; return new _new(); } var ajax = { defulte:function(web,func) { this.web = web; this.functions = func; }, createXMLHttpRequest: function() { var xmlHttp; if (window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest(); } return xmlHttp; }, handlereadychange:function() { if(xmlHttp.readystate == 4) //xmlhttp未定义 { if(xmlHttp.status == 200) { this.functions; //...() } } }, getSend:function() { var xmlHttp = this.createXMLHttpRequest(); xmlHttp.onreadystatechange = this.handlereadychange(); //() xmlHttp.open("GET", this.web , true); xmlHttp.send(null); } } javascript之for in 循环用法请教 Jquery LigerUI1.9 ligerTree 动态加载数据 不显示的问题 有什么办法可以关闭浏览器 注册信息的检测是怎样实现的? 子窗口向父窗口写数据,而不是返加数据. 非常艰巨的问题,恳请高手解决!!!! 如果何取得网页的返回值? 急,高分 canvas 如何实现a用户画,b,c,d用户可以看到.类似于你画我猜 如何在javascript实现php中print_r的功能! 请教新页面选择的内容提交给父页面如何实现? JS 和数据岛的问题 请教一下
this.functions; //加上括号, 这里是调用
{
function _new()
{
if(aClass.defulte)
{
aClass.defulte.apply(this,aparams);
}
}
_new.prototype = aClass;
return new _new();
}
var ajax =
{
defulte:function(web,func)
{
this.web = web;
this.functions = func;
},
createXMLHttpRequest: function()
{
var xmlHttp;
if (window.ActiveXObject)
{
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest)
{
xmlHttp = new XMLHttpRequest();
}
return xmlHttp;
},
handlereadychange:function()
{
if(xmlHttp.readystate == 4) //xmlhttp未定义
{
if(xmlHttp.status == 200)
{
this.functions;
}
}
},
getSend:function()
{
var xmlHttp = this.createXMLHttpRequest(); //只要句柄
xmlHttp.onreadystatechange = this.handlereadychange();
xmlHttp.open("GET", this.web , true);
xmlHttp.send(null);
}
}
{
function _new()
{
if(aClass.defulte)
{
aClass.defulte.apply(this,aparams);
}
}
_new.prototype = aClass;
return new _new();
}
var ajax =
{
defulte:function(web,func)
{
this.web = web;
this.functions = func;
},
createXMLHttpRequest: function()
{
var xmlHttp;
if (window.ActiveXObject)
{
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest)
{
xmlHttp = new XMLHttpRequest();
}
return xmlHttp;
},
handlereadychange:function()
{
if(xmlHttp.readystate == 4) //xmlhttp未定义
{
if(xmlHttp.status == 200)
{
this.functions; //...()
}
}
},
getSend:function()
{
var xmlHttp = this.createXMLHttpRequest();
xmlHttp.onreadystatechange = this.handlereadychange(); //()
xmlHttp.open("GET", this.web , true);
xmlHttp.send(null);
}
}