jquery ajax get /post
$.get(URL,callback);
$("button").click(function(){ $.get("demo_test.asp",function(data,status){ alert("Data: " + data + "\nStatus: " + status); }); });
$.post(URL,data,callback);
$("button").click(function(){ $.post("demo_test_post.asp", { name:"Donald Duck", city:"Duckburg" }, function(data,status){ alert("Data: " + data + "\nStatus: " + status); }); });
开源学习,互动进步
posted on 2016-04-24 11:17 Bug__Killer 阅读(171) 评论(0) 编辑 收藏 举报