ajax的使用

$.ajax({
                type: "post",
                url: "?action=DownLoadExcel",
                data:"table='"+3+"'",
                beforeSend: function (XMLHttpRequest) {

                },
                success: function (data, textStatus) {
                    alert(data);
                },
                complete: function (XMLHttpRequest, textStatus) {

                },
                error: function () {

                }
            });

         $.ajax({
                    url:"?action=updateDeposit",
                    type:"post",
                    async: false,
                    data:"TombID="+2+"&num=1",
                    success:function(){
                    }
                });

原文地址:https://www.cnblogs.com/codeloves/p/2874744.html