如何取消已经运行Ajax请求(服务器端) [英] How to cancel ajax request that has run (on server side)

查看:117
本文介绍了如何取消已经运行Ajax请求(服务器端)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在想,如果有一个简单的方法来取消AJAX请求?

I was wondering if there's a simple way to cancel an AJAX request?

除了只是在客户端的XMLHTT prequest调用一个'中止',有没有办法能够轻松地停止服务器进程?服务器使用Apache。

Beyond just calling an 'abort' on the XMLHTTPRequest on the client side, is there a way to easily stop the server process? The server is using Apache.

感谢

推荐答案

没有。肯定有没有简单的方法。

No. There's definitely no simple way.

我能想到的一些复杂的方式,但他们是不可靠的。

I can think of some complex ways, but they would be unreliable.

您将可能有更多的运气开发过程中的逆转的从请求你刚刚运行(我假定这就是你想阻止它的原因。)所做的更改

You'll probably have more luck developing a process for reversing the changes from a request you've just run (I'm assuming that's the reason you would want to stop it.)

这篇关于如何取消已经运行Ajax请求(服务器端)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆