需求:使得一个变量在ajax内外都有作用域

方法:设置为同步请求

async:false

 

posted on 2018-08-30 10:46  song.yan  阅读(404)  评论(0编辑  收藏  举报