原生js 实现POST同步请求报错,怎么解决

封装的post请求的xmlHttp.open('post', url,false);
最后一个参数false,竟然在谷歌浏览器中不支持,怎么解决啊?
synchronous XMLHttpRequest on the main thread isdeprecated bacause of its detrimantal effects to the end user`s experience.

只是提醒而已,同步的话如果网速慢浏览器假死用户体验很糟糕,能用同同步解决的都可以用异步+回调解决,除非使用了一些比较垃圾的模板必须同步获取将数据加到dom中的必须用同步请求的才使用同步

但是我的谷歌浏览器上面直接提醒完后还是不当同步执行啊

试试用service.post(url,data)执行