当前位置:网站首页>Tree row expression
Tree row expression
2022-07-28 20:24:00 【Come on, boy!】
The structure of the tree chart is self-evident , Very easy to use and practical perfection , So now let me briefly introduce the usage and structure of tree rows !!
1. Routine usage

This is a table view of tree row structure It mainly expresses provinces City And area , The purpose of doing this , Is to express the intention of the structure more clearly Used to highlight practicality Simplicity Perfection This part of .
<div id="test12" class="demo-tree-more"></div>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
<legend> Routine usage </legend>
</fieldset> ,data1 = [{
title: ' jiangxi '
,id: 1
,children: [{
title: ' nanchang '
,id: 1000
,children: [{
title: ' Qingshanhu district '
,id: 10001
},{
title: ' High-tech zone '
,id: 10002
}]
},{
title: ' Jiujiang '
,id: 1001
},{
title: ' Ganzhou '
,id: 1002
}]
},{
title: ' guangxi '
,id: 2
,children: [{
title: ' nanning '
,id: 2000
},{
title: ' guilin '
,id: 2001
}]
},{
title: ' shaanxi '
,id: 3
,children: [{
title: ' Xi'an '
,id: 3000
},{
title: ' yanan '
,id: 3001
}]
}]How about these , It is the code that indicates the tree row structure , Main use data To express the intention ,title It means province Of course It can also contain chidren Once again, a title To show one of the municipal cities It can also be applied all the time chidren To apply this , You can connect wirelessly , Show the practical relationship .
2. Accordion mode
This figure is also a graph of tree row structure But the use method is completely different from the former structure , But the general meaning is exactly the same , So the choice between the two , The so-called way of changing soup without changing medicine expresses the same meaning !
<div id="test2" class="demo-tree"></div>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
<legend> Accordion mode </legend>
</fieldset>tree.render({
elem: '#test4'
,data: [{
title: ' good '
,children: [{
title: '80 ~ 90'
},{
title: '90 ~ 100'
}]
},{
title: ' good '
,children: [{
title: '70 ~ 80'
},{
title: '60 ~ 70'
}]
},{
title: ' Try hard '
,children: [{
title: '0 ~ 60'
}]
}]
,accordion: true
});Tree row representation diagram basically introduces these two , In fact, there are many other methods that I will not introduce one by one , Just remember that it's a pattern of changing soup without changing medicine , Seriously explore , There must be no problem ! come on. , juvenile !
边栏推荐
- Quick sort template
- Simple use of robobrowser
- C language pointer and two-dimensional array
- WPF--实现WebSocket服务端
- Solve the problem that jupyter cannot import new packages
- [C language] simulation implementation of pow function (recursion)
- XOR operation and its usage
- Raspberry pie 3b ffmpeg RTMP streaming
- New fruit naming (DP is similar to the longest common subsequence)
- C language - data type
猜你喜欢
![[C language] guessing numbers game [function]](/img/db/8ebdb02f137878224367503b730803.png)
[C language] guessing numbers game [function]

Advanced notes (Part 2)

Store and guarantee rancher data based on Minio objects

Circular linked list OJ question

CNN convolution neural network learning process (weight update)

七种轮询介绍(后附实践链接)

C语言简单实例 1
![[C language] Pointer advanced knowledge points](/img/8f/0057243c603ddfe20381c9bd446f03.png)
[C language] Pointer advanced knowledge points

The privatized instant messaging platform protects the security of enterprise mobile business

Const pointer of C language and parameter passing of main function
随机推荐
为什么客户支持对SaaS公司很重要?
mmo及时战斗游戏中的场景线程分配
Raspberry Pie 3 connected to WiFi
[C language] summary of methods for solving the greatest common divisor
Use of strtok and strError
Representation of base and number 2
DSACTF7月re
Basic knowledge of C language
Solve the kangaroo crossing problem (DP)
9. Pointer of C language (4) pointer and one-dimensional array, pointer operation
zfoo增加类似于mydog的路由
3、 Are formal and actual parameters in a programming language variables?
CNN convolution neural network learning process (weight update)
Scene thread allocation in MMO real-time combat games
7. Functions of C language, function definitions and the order of function calls, how to declare functions, prime examples, formal parameters and arguments, and how to write a function well
What is the variance?
plt. What does it mean when linestyle, marker, color equals none in plot()
WPF -- implement websocket server
Longest Palindromic Substring
Raspberry pie CM4 -- using metartc3.0 to integrate ffmpeg to realize webrtc push-pull streaming