js用setInterval刷新,第一次刷新后就中断。

用chrome的snippets测试

 setInterval('window.location.reload()',1000); //指定1秒刷新一次 

刷新一次后就中断,并警告
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.

XHR请求改同步的,要不异步你刷新页面会导致ajax被中断,报的应该是中断的错误