当前位置:网站首页>[ruoyi] ztree initialization
[ruoyi] ztree initialization
2022-06-29 03:30:00 【sayyy】
Catalog
Preface
- ruoyi 4.6.0
Use ruoyi (ruoyi) Method after encapsulation
initialization ztree
<div id="tree" class="ztree"></div>
function initZtreeByRuoyi(){
var url = ctx + "xxx/xxx/TreeData";
var options = {
url: url,
expandLevel: 2,
onClick : zOnClick,
callback: {
onRightClick: zOnClick
}
};
$.tree.init(options);
}
obtain ztree object
var ztree = $._tree;
Use ztree The method provided by itself
initialization ztree
<div id="tree" class="ztree"></div>
function initZtree(){
var url = ctx + "xxx/xxx/TreeData";
var options = {
url: url,
expandLevel: 2,
onClick : zOnClick,
callback: {
onRightClick: zOnClick
}
};
$.get(ctx + "xxx/xxx/TreeData", function(data){
var ztree = $.fn.zTree.init($("#tree"), options , data);
$._tree = ztree; /* Compatible ruoyi (ruoyi)*/
});
}
obtain ztree object
var ztree = $.fn.zTree.getZTreeObj("tree");
Reference resources
https://treejs.cn/v3/api.php
边栏推荐
- [dynamic planning] change exchange
- Gartner's "voice of customers" has the highest score, and the user experience has become a major breakthrough for China's database
- MATALB signal processing - signal transformation (7)
- Mobaihe box, ZTE box, Migu box, Huawei box, Huawei Yuehe box, Fiberhome box, Skyworth box, Tianyi box and other operators' box firmware collection and sharing
- Sequence traversal of binary tree ii[one of sequence traversal methods - > recursive traversal + level]
- Yyds dry inventory difference between bazel and gradle tools
- 2022-2028 global low carbon concrete industry research and trend analysis report
- 图论的基本概念
- Potential learning C language - pointer explanation (Advanced)
- An internal error occurred during: 'Retrieving archetypes:'.
猜你喜欢

FPGA (VII) RTL code III (complex circuit design 2)

2022-2028 global pneumatic test probe industry survey and trend analysis report

Probe into metacosmic storage, the next explosive point in the data storage market?

【TcaplusDB知识库】修改业务修改集群cluster

【线程通信】

Get error: Unsupported fork ordering: eip150block not enabled, but eip155block enabled at 0

Basic MySQL database operations

Installation and deployment of sw-x framework

设备监理师证书含金量怎样?值得考吗?

Ugui slider minimum control
随机推荐
图论的基本概念
Which is the product with the highest interest rate of increased life insurance on the market at present?
Linear and nonlinear structures
Yyds dry inventory everything a primary developer should know about activity
Gartner“客户之声”最高分,用户体验成中国数据库一大突破口
Want to be an equipment manager? If you meet these three conditions, you can
2022-2028 global sound insulation coating industry research and trend analysis report
Movement state change of monitoring device of Jerry's watch [chapter]
leetcode:560. 和为 K 的子数组
ssm项目环境初步搭建
Quick sort, query the k-largest number of the sequence
Potential learning C language - pointer explanation (Advanced)
Deeply analyzing the business logic of "chain 2+1" mode
Allegro's method of setting network flying line and network color
搭建nexus服务
The continued movement of Jerry's watch [chapter]
Grafana入门教程
Tkinter Huarong Road 4x4 Tutorial 4
Is it safe for qiniu school to open an account in 2022?
【若依(ruoyi)】ztree初始化