原文:Fatal error Using $this when not in object context in

大致意思是 this 没有上下文,原因是没有对此类进行实例化。 出现此错误的原因是:在FileCommand.php中使用 this gt 方法 属性。 this 不是不可以用,而是要看情况用。在实例化的 类中使用 this是可以的 class Person private var name private var sex public function showName echo this gt ...

2015-07-30 12:09 0 11950 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM