<!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='width: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