$row = $this->m_childlist[$i]->display($row, $sublist); 这是什么意思?
全部代码在这里http://bbs.csdn.net/topics/390805879
下面这一句:
<br /><br />function display($row, $sublist)<br />{<br /> //this is code<br />$row = $this->m_childlist[$i]->display($row, $sublist); //这一句是什么意思??请指点<br />}<br />
------解决方案--------------------$this->m_childlist[$i] 是一个 treenode 对象,另贴1段46行:
$this->m_childlist[$count]= new treenode($row['postid'],$row['title'],....
$row = $this->m_childlist[$i]->display($row, $sublist);
的作用是沿着树枝输出所有节点和叶子
------解决方案--------------------看方法应该是递归遍历树节点。
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn