日期:2014-05-18 浏览次数:20665 次
function save(){
var arr = new Array();
var arr1 = new Array();
$.each($('input[type=radio]'),function(i){
if($('input[type=radio]').eq(i).attr('checked')){
var n=$('input[type=radio]').eq(i).attr('name');
arr.push(n);
var v=$('input[type=radio]').eq(i).attr('value');
arr1.push(v);
}
})
$.post('ruleconfig!updateList.action'{arr:'arr',arr1:'arr1'},function(data){
if(data.success){
msgShow('成功',data.message,'info');
}
},'json');
}
arr:'arr',arr1:'arr1'
String[] arr = request.getParameters("arr");
String[] arr1 = request.getParameters("arr1");
HttpServletRequest request = ServletActionContext.getRequest();
String[] arr = request.getParameters("arr[]");
String[] arr1 = request.getParameters("arr1[]");