var test = “”;
function ajaxfun(){
.....ajax
success:function(response, opts){
test = true
}
return test;
}
function on(){
ajaxfun()
}
请问在不把ajax变为同步的情况下怎么正常取到值
...全文
3241打赏收藏
ajax 返回值问题求大神解答
var test = “”; function ajaxfun(){ .....ajax success:function(response, opts){ test = true } return test; } function on(){ ajaxfun() } 请问在不把ajax变为同步的情况下怎么正常取到值