冯海滨博客

您现在的位置是:首页 > Js/Jquery > 正文

Js/Jquery

jquery 标准ajax

happyfhb2019-01-18Js/Jquery1507
  $.ajax({
                url: '/control/httplog.ashx?functiontype=delete',
                  type: "post",
                data: { "product": product },
                dataType: "json", 
                beforeSend: function () {
                    // Handle the beforeSend event
                },
                success: function (data) {

                   //do 
                },
                complete: function (XMLHttpRequest, textStatus) {
                    // Handle the complete event
                },
                error: function (jqXHR,textStatus,errorThrown) {
                    alert("出错啦!");
                }
            });


平淡中储蓄成长

发表评论

评论列表

  • 这篇文章还没有收到评论,赶紧来抢沙发吧~