Ajax是否称这种方法? [英] Is Ajax called this method?

查看:67
本文介绍了Ajax是否称这种方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个可以使用jQuery ajax调用从web调用的Web服务,或者可以从我创建的桌面应用程序调用


我想在该webservice中知道方法..这是ajax电话吗?..




这可能吗?

I have created one web service that will may called from web using jQuery ajax call or may call from desktop application that I have created
I want to know in that webservice method.. Is this ajax call or not?..

Is that possible?

推荐答案

如果 HTTP_X_REQUESTED_WITH 服务器变量已设置且等于'XMLHttpRequest',则可以假设该请求是通过jQuery AJAX进行的。

If the HTTP_X_REQUESTED_WITH server variable is set and equals to 'XMLHttpRequest', you can assume that the request was made via jQuery AJAX.

这篇关于Ajax是否称这种方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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