ajax 请求数据

  $.ajax({
  url: url,
  data: data,
  success: success,
  dataType: dataType
});
$.get("demo_test.asp",{},function(data,status){
    alert("Data: " + data + "\nStatus: " + status);
  });

$.post("demo_test_post.asp",
  {
    name:"Donald Duck",
    city:"Duckburg"
  },
  function(data,status){
    alert("Data: " + data + "\nStatus: " + status);
  });

评论

刷新

友情链接