您好,欢迎访问一九零五行业门户网

php中检查是否ajax请求

$ajax = false;
if(!empty($_server['http_x_requested_with']) 
&& strtolower($_server['http_x_requested_with']) == 'xmlhttprequest') 
{
  $ajax = true;
}
其它类似信息

推荐信息