日期:2014-05-18  浏览次数:20687 次

在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的方法