91美食网
您的当前位置:首页探讨在JQuery和Js中,如何让ajax执行完后再继续往下执行_jquery

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

来源:91美食网


代码如下:
$.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");
显示全文