/** * 是否Ajax请求 * * @return boolean */ public function isAjax() { if ($this->ajax === NULL) { $this->ajax = \HuiLib\Helper\Param::isXmlHttpRequest(); } return $this->ajax; }