Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

参照你说的 页面报错 #34

Open
TomYule opened this issue Nov 20, 2017 · 1 comment
Open

参照你说的 页面报错 #34

TomYule opened this issue Nov 20, 2017 · 1 comment

Comments

@TomYule
Copy link

TomYule commented Nov 20, 2017

`<!doctype html>

<title>xgcalendarp</title> <script src="http://code.jquery.com/jquery-2.1.1.min.js" type="text/javascript"></script> <script src="code/js/common.js" type="text/javascript"></script> <script src="code/js/locales/xgcalendar_lang_zh_cn.js" type="text/javascript"></script> <script src="code/js/plugin/xgcalendar.js?v=1.2.0.4" type="text/javascript"></script>
这里是日历控件
<script type="text/javascript"> $(document).ready(function() { var op = { view: "week", //默认视图,这里是周视图 theme:1,//默认的主题风格 autoload:true, //是否在页面加载完毕后自动获取当前视图时间的数据 showday: new Date(), //当前视图的显示时间 EditCmdhandler:edit, //点击的响应事件 //DeleteCmdhandler:dcal, //删除的响应事件 ViewCmdhandler:view, //查看的响应事件 onWeekOrMonthToDay:wtd,//当when weekview or month switch to dayview onBeforeRequestData: cal_beforerequest, onAfterRequestData: cal_afterrequest, onRequestDataError: cal_onerror, url: "/calendar/query" , //url for get event data by ajax request(post) quickAddUrl: "/calendar/add" , //url for quick add event data by ajax request(post) quickUpdateUrl: "/calendar/update" , //url for quick update event data by ajax request(post) quickDeleteUrl: "/calendar/delete" //url for quick delete event data by ajax request(post) }; var _MH = document.documentElement.clientHeight; //获取页面高度,不同的文档类型需要不同的计算方法,注意示例中使用的doctype 用这个就搞定了 op.height = _MH-70; //container height; op.eventItems =[]; //default event data; $("#xgcalendarp").bcalendar(op); }); </script> `
@xuanye
Copy link
Owner

xuanye commented Nov 21, 2017

示例是要配合服务端来展现的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants