现在有2个页面! A,B, A和B嵌套在一个页面 A post提交给B页面,这个逻辑怎么!
6条回答 默认 最新
- zx527291227 2012-10-30 12:22关注
Ajax请求数据:
[code="html"]
$(function($){ alert($); $.ajax({ type: "POST", url: "login", data: "", dataType: "json", success: function(msg){ for(var a = 0;a<msg.length;a++){ alert("id : "+msg[a].id+" name : "+msg[a].name+" password : "+msg[a].password+" sex : "+msg[a].sex); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { alert(errorThrown); } }); }); </script>[/code]
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报