📜  如何从 ajax javascript 代码示例向父函数返回值

📅  最后修改于: 2022-03-11 15:03:28.343000             🧑  作者: Mango

代码示例1
add "async: false," this line to the $.ajax

$.ajax({
  url:url,
  async: false,
  data:params,
  success:function(res){
    
  },
  error:function(err){
  
  }
                            
});