擅长:python、mysql、java
<p>检查这个<a href="https://stackoverflow.com/questions/2187115/how-to-check-if-request-is-ajax-in-turbogears">how to check if request is ajax in turbogears</a></p>
<p>这也是在Django中如何做到的(这取决于您的框架):<a href="https://stackoverflow.com/questions/5414687/how-to-check-contents-of-incoming-http-header-request">How to check contents of incoming HTTP header request</a></p>