thinkphp dispaly和fetch的区别

$data = $this->fetch();//返回渲染后的页面

$this->ajaxReturn($data, null, true);

$this->display();//直接输出渲染后的页面

=》刷新整个页面,输出时需指定显示位置,比如iframe等

 

display的说明:http://www.5idev.com/p-thinkphp_tpl_display.shtml

posted @ 2015-02-09 19:01  lifeinearth  阅读(1381)  评论(0编辑  收藏  举报