📜  if( request()->ajax()==false - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:04.253000             🧑  作者: Mango

代码示例1
if ( !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest' )
{
       # Ex. check the query and serve requested data
}