$.ajaxSettings.async = false;
$.ajaxSetup({ async : false });
ajax全局同步、方法同步
原文:http://www.cnblogs.com/wxx516/p/7891938.html