zoukankan      html  css  js  c++  java
  • 02.dhtmlxGantt使用在线横道图Load data from JSON file

    <!DOCTYPE html>
    <head>
    	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
    	<title>Load data from JSON file</title>
    	<script src="../../codebase/dhtmlxgantt.js?v=6.0.7"></script>
    	<link rel="stylesheet" href="../../codebase/dhtmlxgantt.css?v=6.0.7">
    	<script src="../common/testdata.js?v=6.0.7"></script>
    	<style>
    		html, body {
    			padding: 0px;
    			margin: 0px;
    			height: 100%;
    		}
    	</style>
    </head>
    <body>
    <div id="gantt_here" style='100%; height:100%;'></div>
    <script>
    	gantt.config.xml_date = "%Y-%m-%d %H:%i:%s";//指定数据文件里的日期格式
    	gantt.init("gantt_here");
    	gantt.load("../common/data.json", "json");//加载数据文件
    </script>
    </body>
    

      https://github.com/610152753/DHTMLX-Gantt-learn  开源资料可以运行的文件。如有问题请加qq群:472279213

  • 相关阅读:
    Java常见异常处理情况
    动手动脑总结
    动手动脑 总结
    二柱子测试三
    动手动脑总结
    动手动脑总结
    Docker同步IDEA
    UISlider
    Docker 部署 uwsgi+nginx + django
    UITableView 九宫格
  • 原文地址:https://www.cnblogs.com/JoePotter/p/10320507.html
Copyright © 2011-2022 走看看