var html = $.ajax({url: "some.php",async: false}).responseText;或者在全局设置Ajax属性$.ajaxSetup({async: false});
来源: http://www.2cto.com/kf/201704/631343.html