问题:
- 具体描述:
Deprecated Feature Used
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. - 图片
原因:
描述翻译过来就是:不推荐使用主线程上的同步XMLHttpRequest
,因为它会对最终用户的体验产生有害影响。
即:因为ajax请求中使用了同步请求,问题出现在asycn:false上面
解决办法:
把代码中同步ajax请求改成异步请求(asycn:true 或去掉这个字段),调整逻辑(增加判断)