ajax同步与异步

时间:2018-05-12 20:57:12   收藏:0   阅读:236

异步是AJAX代码运行中的时候其他代码一样可以运行

默认是true: 异步,false: 同步

$.ajax({

         type: "post", 

         url: "path", 

         cache:false, 

         async:false, 

         dataType: ($.browser.msie) ? "text" : "xml", 

         success: function(object){ 

        } 

});

原文:https://www.cnblogs.com/wangshengl9263/p/9029874.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!