怎么把JS数组传递给selvet? 我使用 JS 数组得到了JSP页面上的数据,简单加工后得到一个数组,我怎么把这个数组传递给selvet后台存入数据库呢?最好有实例,先谢了~~~:) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ajaxhttp://www.cnblogs.com/yeer/archive/2009/07/23/1529460.html function doSub(){ var arr = {"aa","bb","cc","dd"}; var temp = ""; for(var i=0;i<arr.length;i++){ temp += arr[i]+","; } temp = temp.substring(0,temp.length-1); this.action = "loginServlet?temp="+temp;} 2楼是一个方法,可以用JSON格式,然后用AJAX去调用传进去就可以了 。。 请教一下struts2配置文件的问题??讲讲原理吧。 hibernate 当IDENTITY_INSERT 设置为 OFF 时...一点心得 求mysql实现split的方法 ssh初学者的一个问题 高手帮忙啊 取值问题! 急问!谁使用过org.apache.commons.net.ftp.FTPClient类,如何获得给定服务器文件的信息 JBuilder9.0怎们用 急问这是什么问题:Unable to compile class for JSP 十万火急,请问jsp环境该怎么配置 谁有好的SSH的分法 求一个struts的分页代码
http://www.cnblogs.com/yeer/archive/2009/07/23/1529460.html
var arr = {"aa","bb","cc","dd"};
var temp = "";
for(var i=0;i<arr.length;i++){
temp += arr[i]+",";
}
temp = temp.substring(0,temp.length-1);
this.action = "loginServlet?temp="+temp;
}