设置$.post,$.get,$.ajax 全局同异步

$.ajaxSetup({
   async: false//or true
});
原文地址:https://www.cnblogs.com/wjm956/p/7919674.html