ajax怎么传递多个数值
$.ajax({alert(id);url:'aaa.php?act=updact',type:'POST',data:"id="+id+"&name="+$("#nam...
$.ajax({
alert(id);
url: 'aaa.php?act=updact',
type: 'POST',
data: "id=" + id + "&name="+$("#name").val(),
success: function(msg) {
alert(msg);
window.location.href='caixi.php?act=upd&id='+obj;
}
});
我的是这样写的,,,怎么不对呢????我把jquery引入了啊······ 展开
alert(id);
url: 'aaa.php?act=updact',
type: 'POST',
data: "id=" + id + "&name="+$("#name").val(),
success: function(msg) {
alert(msg);
window.location.href='caixi.php?act=upd&id='+obj;
}
});
我的是这样写的,,,怎么不对呢????我把jquery引入了啊······ 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询