| is_ajax() | ใช้ตรวจสอบว่าเป็นการ request ของ ajax ใช่หรือไม่ |
|---|
method:is_ajax ();
return type:boolean
special:static
content:ใช้ตรวจสอบว่าเป็นการ request ของ ajax ใช่หรือไม่
example:if ( request::is_ajax () ) { echo "Ajax Request."; } else { return "Common Request"; }