
更多>
最新下载
24小时阅读排行榜
- 1 打开Photoshop提示暂存盘已满无法使用的解决方法
- 2 Python虚拟现实 Python VR开发环境配置
- 3 JS中的localStorage怎么用?能存什么?
- 4 Python中如何使用静态方法?
- 5 微信怎么设置夜间模式 微信深色模式开启教程
- 6 什么是C++中的安全字符串处理?
- 7 新手必看!DeepSeekAI生成标题技巧,小红书梗图点击率提升50%!
- 8 Python中setup.py作用 传统Python包配置setup.py文件编写指南
- 9 学习通视频课程怎么加速播放 学习通视频课程倍速播放设置
- 10 轻颜相机怎么拍动态照片 动态照片拍摄全攻略
- 11 Opensea通过OS2升级再次证明了它的弹性
- 12 python中pip的安装与使用 python包管理工具pip命令大全
- 13 美图秀秀如何调整照片比例?美图秀秀裁剪缩放技巧分享!
- 14 如何动态地向类添加方法?
- 15 Python中enum枚举类型 Python3中enum模块创建枚举类详解
更多>
最新教程
-
- 麻省理工大佬Python课程
- 9420 2024-05-31
-
- Swoole5 Hyperf3 php8新版本协程框架讲说
- 12014 2024-05-13
-
- 【web前端】Node.js快速入门
- 7888 2024-04-26
-
- 国外Web开发全栈课程全集
- 7817 2024-04-24
-
- Go语言实战之 GraphQL
- 5618 2024-04-19
-
- 550W粉丝大佬手把手从零学JavaScript
- 6427 2024-04-18
jQuery组织结构图表插件OrgChart
js代码
<script src="js/jquery-2.1.1.min.js" type="text/javascript"></script> <script type="text/javascript" src="js/html2canvas.js"></script> <script type="text/javascript" src="js/jquery.orgchart.js"></script> <script type="text/javascript"> 'use strict'; (function($){ $(function() { var datascource = { 'name': 'Lao Lao', 'title': 'general manager', 'relationship': { 'children_num': 8 }, 'children': [ { 'name': 'Bo Miao', 'title': 'department manager', 'relationship': { 'children_num': 0, 'parent_num': 1,'sibling_num': 7 }}, { 'name': 'Su Miao', 'title': 'department manager', 'relationship': { 'children_num': 2, 'parent_num': 1,'sibling_num': 7 }, 'children': [ { 'name': 'Tie Hua', 'title': 'senior engineer', 'relationship': { 'children_num': 0, 'parent_num': 1,'sibling_num': 1 }}, { 'name': 'Hei Hei', 'title': 'senior engineer', 'relationship': { 'children_num': 2, 'parent_num': 1,'sibling_num': 1 }, 'children': [ { 'name': 'Pang Pang', 'title': 'engineer', 'relationship': { 'children_num': 0, 'parent_num': 1,'sibling_num': 1 }}, { 'name': 'Xiang Xiang', 'title': 'UE engineer', 'relationship': { 'children_num': 0, 'parent_num': 1,'sibling_num': 1 }} ] } ] }, { 'name': 'Yu Jie', 'title': 'department manager', 'relationship': { 'children_num': 0, 'parent_num': 1,'sibling_num': 7 }}, { 'name': 'Yu Li', 'title': 'department manager', 'relationship': { 'children_num': 0, 'parent_num': 1,'sibling_num': 7 }}, { 'name': 'Hong Miao', 'title': 'department manager', 'relationship': { 'children_num': 0, 'parent_num': 1,'sibling_num': 7 }}, { 'name': 'Yu Wei', 'title': 'department manager', 'relationship': { 'children_num': 0, 'parent_num': 1,'sibling_num': 7 }}, { 'name': 'Chun Miao', 'title': 'department manager', 'relationship': { 'children_num': 0, 'parent_num': 1,'sibling_num': 7 }}, { 'name': 'Yu Tie', 'title': 'department manager', 'relationship': { 'children_num': 0, 'parent_num': 1,'sibling_num': 7 }} ] }; $('#chart-container').orgchart({ 'data' : datascource, 'depth': 2, 'nodeTitle': 'name', 'nodeContent': 'title' }); }); })(jQuery); </script>
jQuery组织结构图表插件OrgChart组织结构布局代码是一款可以使用本地数据,或通过ajax调用来完成数据的填充。


本站所有资源都是由网友投搞发布,或转载各大下载站,请自行检测软件的完整性!本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!如有侵权请联系我们删除下架,联系方式:admin@php.cn