我如何显示正在发送的数据?

时间:2010-02-18 19:53:27

标签: jquery ajax post

使用Jquery ajax发布如何显示有关将要发布的数据的消息。

$.ajax({
  beforeSend: function (request) {
    //something here
  },
  type: "POST",
  url: "delete/process.php",
  data: "delcustomerid="+ delcustomerid,
  success: refreshTable
});

2 个答案:

答案 0 :(得分:3)

使用firebugconsole.log(request)

答案 1 :(得分:0)

$.ajax({ 
  beforeSend: function (request) { 
    alert("delcustomerid="+ delcustomerid);
  }, 
  type: "POST", 
  url: "delete/process.php", 
  data: "delcustomerid="+ delcustomerid, 
  success: refreshTable 
});