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(){
                    }
                });

posted @ 2013-01-24 13:11  王者杂货铺  阅读(161)  评论(0编辑  收藏  举报