码迷,mamicode.com
首页 > Web开发 > 详细

Ajax之 beforeSend和complete longind制作

时间:2016-12-09 00:04:45      阅读:221      评论:0      收藏:0      [点我收藏+]

标签:hid   function   min   color   white   http   ack   font   and   

 

 

$.ajax({

    beforeSend: function(){

     // Handle the beforeSend event

    },

    complete: function(){

     // Handle the complete event

    }

    // ......

});

 

$.ajax({

    type: "post",

 

    url: "xxxxx",

    beforeSend: function () {

        $("loading").show();

    },

    success: function (data) {

    //........

    },

    complete: function () {

        $("loading").hide();

    },

 技术分享

 

});

Ajax之 beforeSend和complete longind制作

标签:hid   function   min   color   white   http   ack   font   and   

原文地址:http://www.cnblogs.com/wangjienull/p/6146799.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!