{CN} - 3.5.2.4.4 isAjax
$this->params['ajax']
$this->params['ajax']
如果当前的页面被设置成‘ajax’这个值就为1,否则是0,这个变量只有在RequestHandler组件在控制器里被使用时才会被设置
{EN} - 3.5.2.4.4 isAjax
$this->params['ajax']
Stores 1 if the current request is an ajax call, 0 if not. This variable is only set if the RequestHandler Component is being used in the controller.
Differences
| Lines: 1-3 | Lines: 1-3 | ||
| <title>isAjax</title> | <title>isAjax</title> | ||
| - | <p class="method"><code>$this->params['ajax']</code></p> <p>Stores 1 if the current request is an ajax call, 0 if not. This variable is only set if the RequestHandler Component is being used in the controller.</p> |
+ | <pre>$this-&gt;params['ajax']</pre> <p>如果当前的页面被设置成‘ajax’这个值就为1,否则是0,这个变量只有在RequestHandler组件在控制器里被使用时才会被设置</p> |
