问一个关于extjs中calendar的问题

xubodeai 2014-07-09 05:56:45
页面代码
@Scripts.Render("~/Scripts/ExtCalendar/Extensible-config.js")
<script type="text/javascript">
//Ext.ux.Loader.load(["/Scripts/ExtCalendar/Extensible-config.js","/Scripts/ExtCalendar/MyCalendar.js"], null, this);


Ext.Loader.setConfig({
enabled: true,
disableCaching: false,
paths: {
"Extensible": "/Scripts/ExtCalendar/src",
"Extensible.example": "/Scripts/ExtCalendar/examples"
}
});

Ext.require('Extensible.calendar.CalendarPanel');

Ext.onReady(function () {
var getStore = function () {
return Ext.create('Extensible.calendar.data.MemoryEventStore', {
data: Ext.create('Extensible.example.calendar.data.Events')
});
};

var calendar;

var createCalendar = function () {
if (calendar) {
calendar.destroy();
}
calendar = Ext.create('Ext.Panel', {
title: 'Destroy Test',
renderTo: document.body,
width: 700,
height: 500,
layout: 'border',
items: [{
region: 'center',
xtype: 'extensible.calendarpanel',
eventStore: getStore()
}]
});
}
createCalendar();


});


</script>


请教一下为什么我加载的时候总提示AbstractCalendar.js中这句
extensible.log('setStartDate (base) '+Ext.Date.format(start, 'Y-m-d'));
log :Uncaught TypeError: undefined is not a function 。

这些代码放在自己建的项目中就正常跑,拿到系统里就报错。很纠结。跟踪到这里就来这么句,。。。。
...全文
171 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
save4me 2014-07-10
  • 打赏
  • 举报
回复
参考: TypeError: Extensible.log is not a function 如果你是直接下载的源码,需要先编译,见Building from Source

39,085

社区成员

发帖
与我相关
我的任务
社区描述
HTML5是构建Web内容的一种语言描述方式。HTML5是互联网的下一代标准,是构建以及呈现互联网内容的一种语言方式.被认为是互联网的核心技术之一。
社区管理员
  • HTML5社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧