ajax 调用服务端方法时data类型需要与服务器一致, 例如: 服务器端方法 public void A(Integer a,String b); ajax传递过来的a如果是float类型,那么将无法调用服务器端方法。