$.ajax的async为false时报错,那如何把$.ajax的回调参数传递到函数外面

$.ajax的async为false时报错Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.,那如何把$.ajax的回调参数传递到函数外面

去掉 async: false, 就可以了啊

声明一个变量,使用this全局调用

看一下你的代码
刚用 async: false,没问题

你的代码呢