当前位置: 代码迷 >> Java Web开发 >> 在ajax中为何字符能传,数字却不能传
  详细解决方案

在ajax中为何字符能传,数字却不能传

热度:85   发布时间:2016-04-17 12:46:03.0
在ajax中为什么字符能传,数字却不能传?
javascript:
   
  alert("tid: "+tid);
  xmlHttp.send("name="+tname);
  xmlHttp.send("pwd="+pwd);
  xmlHttp.send("tid="+tid); // 为什么tid传过去的是null呢?

-------------------------
struts action:
   
  System.out.println("this is admin manager action 's modify");
  System.out.println("ctid: " +request.getParameter("tid"));

-------------------------

结果:
this is admin manager action 's modify
name: 06020041 
pwd: 789
ctid: null

------解决方案--------------------
POST的方法
  相关解决方案