控制器方法
public function autodemo(){ $this->display(); for ($i=0; $i < 50; $i++) { sleep(3); show_msg($i.'*3秒过去了...','green'); } }
输出函数
function show_msg($msg, $class = ''){ echo ; flush(); ob_flush();}
模板
document