如何让ajax执行完后再继续往下执行

$.ajax加上参数async: false, false代表同步请求,true代表异步(默认)

原文地址:https://www.cnblogs.com/chenqionghe/p/4293904.html