当前位置:网站首页>[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
边栏推荐
- Probe into metacosmic storage, the next explosive point in the data storage market?
- 2022-2028 global MWIR camera industry research and trend analysis report
- Modstart rewrite rule
- An internal error occurred during: 'Retrieving archetypes:'.
- 19.03 容器的说明和简单应用例续
- Gartner's "voice of customers" has the highest score, and the user experience has become a major breakthrough for China's database
- Access 500 error after modstart migrates the environment
- Tortoise does not display a green Icon
- 【TcaplusDB知识库】TcaplusDB-tcapsvrmgr工具介绍(三)
- Is the account opening of GF Securities really safe and reliable
猜你喜欢

Installation and deployment of sw-x framework

Tupu software intelligent energy integrated management and control platform

2022-2028 global low carbon concrete industry research and trend analysis report

MySQL advanced SQL statement (Part 2)

Problem - ADB shellerror: insufficient permissions for device: verify udev rules

想当设备管理师?满足这三个报考条件就可以

Grafana Getting Started tutorial

FortiGate firewall configuration log uploading regularly

In depth analysis of Apache bookkeeper series: Part 3 - reading principle

Input input box click with border
随机推荐
【线程通信】
set time format
Ten commands commonly used in SVN
Merge sort
2022-2028 global sound insulation coating industry research and trend analysis report
Stm32l4 Series MCU ADC accurately calculates input voltage through internal reference voltage
Get error: Unsupported fork ordering: eip150block not enabled, but eip155block enabled at 0
Laravel, execute PHP artist migrate and report an error alter table `users`add unique `users_ email_ unique`(`email`))
django model生成docx数据库设计文档
Potential learning C language - pointer explanation (Advanced)
无法定位程序输入点 [email protected]
Synchronous real-time data of Jerry's watch [chapter]
深度解析“链动2+1”模式的商业逻辑
2D human posture estimation deeppose
Jerry's watch stops moving [chapter]
【云原生】这么火,你不来了解下?
Ugui slider minimum control
二叉树的锯齿形层序遍历[分层遍历方式之一 -> 前序遍历+level]
go-redsync分布式锁源码解析
問題——adb shellerror: insufficient permissions for device: verify udev rules.