$.ajaxSetup({ async: false//or true });
设置$.post,$.get,$.ajax 全局同异步
原文:http://www.cnblogs.com/wjm956/p/7919674.html