摘要: public function getTree($data, $pId=0){ $tree = array(); foreach($data as $k => $v) { if($v['pid'] == $pId) { $v['children'] = $this->getTree($data, $ 阅读全文
posted @ 2019-11-08 18:13 jongty 阅读(191) 评论(0) 推荐(0) 编辑