探讨在JQuery和Js中,如何让ajax执行完后再继续往下执行

复制代码 代码如下:

  $.ajax

  ({

  cache: false,

  async: false,   // 太关键了,学习了,同步和异步的参数

  dataType: 'json', type: 'post',

  url: "../handle/Ladder_Fee_Code.ashx?ajaxaction=Select_FangAn",

  success: function (data)

  {

  alert("1");

  }

  });

  alert("2");