![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
分类
admin
这个作者很懒,什么都没留下…
展开
-
php|thinkphp无限极实现下拉选择
最终效果图Model<?php/** * Created by. * User: Jim * Date: 2020/10/30 * Time: 9:09 */namespace app\admin\model;use think\Db;use think\facade\Request;class EdmMenu extends Base{ protected $name = 'edm_menu'; static $treeList = [];原创 2020-12-08 16:52:48 · 395 阅读 · 0 评论 -
thinkphp递归实现无限极子分类children
Model /** * 获取所有的分类,并与树形显示 */ public function getAllTreeMenusList() { $data = self::select()->toArray(); return self::_generateTree($data); } private static function _generateTree ($data, $pid = 0) {原创 2020-12-08 15:26:53 · 1038 阅读 · 0 评论