Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 ajax 请求预加载一些文件
var foo = $.ajax({url:'http://blahblah.com/myfile.jpg'});
但是,当我调用foo.abort();开发人员工具的网络面板(在 FireFox 和 Chrome 中的网络)显示文件仍在下载中,如果通过浏览器或使用window.stop()方法停止页面加载,将停止下载。有什么方法可以停止下载吗?
foo.abort();
window.stop()