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.
我可以导致 xhr 请求中断/终止客户端吗?我有许多长期运行的请求,一旦它们不再相关,我想放弃它们。
我相信xhr.abort()这就是你要找的。
xhr.abort()