Ztree遍历时删除数据

// 查询数据
        List<Org> list = outCommonService.getOrgTree(queryOrg);
      
            Iterator<Org> it = list.iterator();
            while(it.hasNext()){
                if("4".equals(it.next().getType())){

                    it.remove();



使用迭代器进行删除。

猜你喜欢

转载自blog.csdn.net/Gao_312/article/details/80667145
今日推荐