当前位置:网站首页>JS tile data lookup leaf node
JS tile data lookup leaf node
2022-07-04 15:14:00 【spring-java】
Go straight to the code
function chooseLeafNode(id,parentId,list=[]){
let treeData=[]
for(let i=0;i<list.length;i++){
let isLeavel=true
for(let j=0;j<list.length;j++){
if(list[i][id]==list[j][id]){
continue
}
if(list[i][id]==list[j][parentId]){
isLeavel=false
break
}
}
if(isLeavel){
treeData.push(list[i])
}
}
return treeData
}
边栏推荐
猜你喜欢

音视频技术开发周刊 | 252

Weekly recruitment | senior DBA annual salary 49+, the more opportunities, the closer success!

Redis publier et s'abonner

03-存储系统

How to handle exceptions in multithreading?

C1 certification learning notes 3 -- Web Foundation

Memory management summary

The per capita savings of major cities in China have been released. Have you reached the standard?

干货 | fMRI标准报告指南新鲜出炉啦,快来涨知识吧

Preliminary exploration of flask: WSGI
随机推荐
科研漫画 | 联系到被试后还需要做什么?
智能客服赛道:网易七鱼、微洱科技打法迥异
力扣刷题01(反转链表+滑动窗口+LRU缓存机制)
Unity脚本API—Transform 变换
numpy笔记
直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
宽度与对齐
Usage of database functions "recommended collection"
Decimal, exponential
Force button brush question 01 (reverse linked list + sliding window +lru cache mechanism)
How to rapidly deploy application software under SaaS
Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作
Huawei cloud database DDS products are deeply enabled
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
Luo Gu - some interesting questions
一篇文章学会GO语言中的变量
IO流:节点流和处理流详细归纳。
Analysis of nearly 100 million dollars stolen and horizon cross chain bridge attacked
压力、焦虑还是抑郁? 正确诊断再治疗
LNX efficient search engine, fastdeploy reasoning deployment toolbox, AI frontier paper | showmeai information daily # 07.04