实例
$("button").click(function(){
$.post("/try/ajax/demo_test_post.php",
{
name:"菜鸟教程",
url:"http://www.runoob.com"
},
function(data,status){
alert("数据: \n" + data + "\n状态: " + status);
});
});
1 回答
已采納

cxxyjsj
TA貢獻119條經(jīng)驗 獲得超22個贊
post回調(diào)方法中的第一個參數(shù)表示請求響應的內(nèi)容。實際上就是/try/ajax/demo_test_post.php的響應內(nèi)容。
- 1 回答
- 0 關(guān)注
- 910 瀏覽
添加回答
舉報
0/150
提交
取消