探讨在JQuery和Js中,如何让ajax执行完后再继续往下执行_jquery
来源:动视网
责编:小采
时间:2020-11-27 21:11:48
探讨在JQuery和Js中,如何让ajax执行完后再继续往下执行_jquery
探讨在JQuery和Js中,如何让ajax执行完后再继续往下执行_jquery: 代码如下: $.ajax ({ cache: false, async: false, // 太关键了,学习了,同步和异步的参数 dataType: 'json', type: 'post', url: ../handle/Ladder_Fee_Code.ashxajaxaction=Select_FangAn, success
导读探讨在JQuery和Js中,如何让ajax执行完后再继续往下执行_jquery: 代码如下: $.ajax ({ cache: false, async: false, // 太关键了,学习了,同步和异步的参数 dataType: 'json', type: 'post', url: ../handle/Ladder_Fee_Code.ashxajaxaction=Select_FangAn, success

代码如下:
$.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");
探讨在JQuery和Js中,如何让ajax执行完后再继续往下执行_jquery
探讨在JQuery和Js中,如何让ajax执行完后再继续往下执行_jquery: 代码如下: $.ajax ({ cache: false, async: false, // 太关键了,学习了,同步和异步的参数 dataType: 'json', type: 'post', url: ../handle/Ladder_Fee_Code.ashxajaxaction=Select_FangAn, success