我正在尝试使用 DHtmlXScheduler 的移动版本。它运行良好,但我无法让它加载数据。我已经尝试过 XML 和 Json。这是文档的链接:http://docs.dhtmlx.com/doku.php?id=dhtmlxscheduler: mobile_data
这是我的代码:
<div data-role="page" data-theme="d" id="Top">
<script src="~/Scripts/dhxscheduler_mobile.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="~/Styles/dhxscheduler_mobile.css">
<div data-role="content">
<script type="text/javascript">
scheduler.config.readonly = true;
dhx.ready(function () {
dhx.ui.fullScreen();
dhx.ui({
view: "scheduler",
id: "scheduler"
});
});
$("scheduler").parse([
{ id: 1, start_date: "2013-04-01 0:00", end_date: "2013-04-01 0:00", text: "Event 1" },
{ id: 2, start_date: "2013-04-05 0:00", end_date: "2013-04-05 0:00", text: "Event 2" }
], "json");
</script>
</div>
</div>
我在这里做错了什么?