find(); $this->assign('data',$data); $this->display(); } public function doEdit() { $res = M("promote_notice","tab_")->save($_REQUEST); if(!$res){ $this->ajaxReturn(["status"=>0,"msg"=>"保存失败"]); } $this->ajaxReturn(["status"=>1,"msg"=>"修改并保存成功"]); } }