局部设置:

var html = $.ajax({
  url: "some.php",
  async: false
}).responseText;

全局设置Ajax属性

$.ajaxSetup({
  async: false
  });