$.ajax传递数组后台如何接收
代码:vardeletelds=newArrays();$.ajax({url:"brand!manySelectDelete.do",type:"post",data:...
代码:
var deletelds = new Arrays();
$.ajax({
url:"brand!manySelectDelete.do",
type:"post",
data:{"deleteId":deleteIds},
dataType:"json",
success:function(){
for(var i=0;deleteIds.length;i++)
$("input[name='deleteId'][value='"+deleteIds[i]+"']").parent().parent().empty();
alert("操作成功!");
},
statusCode:{500:function(){
alert("服务器出错,请联系管理人员");
}},
});
消息头显示
后台要怎么接收呢?Struts2框架.... 展开
var deletelds = new Arrays();
$.ajax({
url:"brand!manySelectDelete.do",
type:"post",
data:{"deleteId":deleteIds},
dataType:"json",
success:function(){
for(var i=0;deleteIds.length;i++)
$("input[name='deleteId'][value='"+deleteIds[i]+"']").parent().parent().empty();
alert("操作成功!");
},
statusCode:{500:function(){
alert("服务器出错,请联系管理人员");
}},
});
消息头显示
后台要怎么接收呢?Struts2框架.... 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询