当前位置: 代码迷 >> J2SE >> AjaxRequest的有关问题
  详细解决方案

AjaxRequest的有关问题

热度:148   发布时间:2016-04-24 16:43:29.0
AjaxRequest的问题
var   url   =   "http://*********/1.htm ";
var   r   =   new   AjaxRequest( "post ",url,false);
r.setParameter( "TPL_NICK ",obj.value);
r.send(null);
alert(r.getText());


r.getText()怎么是空的?我在1.htm中直接写了个“1”
不知道要怎样才能读取1.htm中的内容

------解决方案--------------------
req = new XMLHttpRequest();
//req.overrideMimeType( "text/xml ");
req.open( "GET ", url, true);
req.send(null);
我是这样写的,你试试行不
  相关解决方案