jquery中选择checkbox拼接成字符串,然后到后台拆分取值
js中的 获取?
?
?
String names = null;String name1 = null;String name2 = null;names = request.getParameter("names");String[] name = names.split(",");for(String x : name){if("zhangsan".equals(x)){name1 = x;}if("lisi".equals(x)){name2 = x;}}?
?
from:http://blog.csdn.net/xpmars/article/details/6875238
1 楼 os586 2012-05-08 可以更优雅一些: