function isajax() { if(isset($_server['http_x_requested_with']) ) { if('xmlhttprequest' == strtolower($_server['http_x_requested_with'])) return true; } //如果参数传递的参数中有ajax if(!empty($_post['ajax']) || !empty($_get['ajax'])) return true; return false;}
