[TOC]
## 日历调用方法一
```
Calendar::generate();
```
## 日历调用方法二
html:
```
<div class="layui-row layui-col-space15" id="calendar"></div>
<script>sendinfo('<?php echo Calendar::url(); ?>','calendar');</script>
```
javascript:
```
function sendinfo(url,node){
updateEle(node,"<div><span style=\"background-color:#FFFFE5; color:#666666;\">加载中...</span></div>");
XMLHttp.sendReq('GET',url,'',function(obj){updateEle(node,obj.responseText);});
}
```
再根据路由分发器Dispatcher判断调用了以下代码:
```
Calendar::generate();
```