Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience.

我的出现这个原因是,jquery的async: false,导致

async:true,(默认),异步方式,$.Ajax执行后,会继续执行ajax后面的脚本,直到服务器端返回数据后,触发$.Ajax里的success方法,这时候执行的是两个线程。

async:false,同步方式,所有的请求均为同步请求,在没有返回值之前,同步请求将锁住浏览器,用户其它操作必须等待请求完成才可以执行。

最新文章

  1. Python之路 day3 函数定义 *args及**kwargs
  2. C++之父Bjarne Stroustrup提供的关于异常处理的建议
  3. django 实战 - eLeave Form
  4. [wikioi2144]砝码称重2(另类的dfs)
  5. 'UserInfoBLL' node cannot be resolved for the specified context [MVC展示数据.Controllers.LoginController]问题解决
  6. Matlab之findobj()
  7. imread函数、namedWindow函数、imshow函数、imwrite函数
  8. poj1651 区间dp
  9. 【转】深入理解篇UIScrollerView
  10. 枚举 UIButton补充
  11. 从同步阻塞聊到Java三种IO方式
  12. 《Self-Attention Generative Adversarial Networks》里的注意力计算
  13. servlet总结:Servlet基础
  14. Activiti搭建
  15. 代理 ip
  16. C++ 把枚举变量的名称,直接当字符串使用方法 字符串化符号 #
  17. linux 常用清理或备份文件命令
  18. 【jQuery】结合accordion插件分析写插件的方法及注意事项
  19. mysql 学习之 DDl语句
  20. Js中parseFloat()方法所产的精度不一致问题

热门文章

  1. Hive 数据类型
  2. 排序算法<No.7>【希尔排序】
  3. MMCM与PLL
  4. OpenEXR的读取机制
  5. VMware Workstation 安装 mac OS 时遇到 不可恢复错误: (vcpu-0)
  6. tomcat源码 StandardServer
  7. github简单命令
  8. [蓝桥杯]ALGO-90.算法训练_出现次数最多的整数
  9. 【springboot】之常用技术文档
  10. 【JVM】Class结构之常量池