控制器基类*/class Control{protected $req;function __construct(){$this -> req = Request::getInstance();}/**是否已用post方式提交过* @return boolean*/function isPost(){return $this -> req -> getPost() ? true : false;}getPost() 是在另一个类中定义的,三个单箭头什么意思呢 $this -> req,访问对象自身属性,再加一个->呢
- 2 回答
- 0 关注
- 225 浏览
添加回答
举报
0/150
提交
取消