Ajax中传值问题
我在后台通过
StringBuffer sb=new StringBuffer();
sb.append(hsh1.get("Sex")+","+hsh1.get("TravellerType")+","+hsh1.get("Birthday")+","+hsh1.get("Phone")+","+hsh1.get("Mobile")+","+hsh1.get("Mail")+",");
方法拼接出字符串,然后要在前台ajax的function(date)中让date获取到sb.toString()。
请高手讲解如何才能将sb.toString()存进date中,不能return,不能printWriter
明早8:30准时结贴
------解决方案--------------------
------解决方案--------------------
------解决方案--------------------
Java code
response.setContentType("text/html;charset=UTF-8");
response.setCharacterEncoding("UTF-8");