Jquery post Best practice?

$.ajax({
  type: "POST",
  url: "ServiceName.asmx/WebMethodName",
  data: "{'fname':'dave','lname':'ward'}",
  contentType: "application/json; charset=utf-8",
  dataType: "json",
  success: function(msg) {
    // Do magic here.
  }
});
posted @ 2008-08-10 21:55  老大卫  阅读(289)  评论(0编辑  收藏  举报