$(document).ready(function() {
$('#calendar').fullCalendar({
theme: true,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
selectable: true,
selectHelper: true,
editable: true,
events: "1.json"
});
});
请问为什么events赋值为1.json,运行时读不到数据?
$('#calendar').fullCalendar({
theme: true,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
selectable: true,
selectHelper: true,
editable: true,
events: "1.json"
});
});
请问为什么events赋值为1.json,运行时读不到数据?
解决方案 »
- 请教一下这段JS是如何传值的?
- 浏览器滚动到哪里显示图片效果如何做
- 关于<@p.table标签的问题 急 !!!!!!!!!!
- JS获取计算问题
- js文件动态导入,项目需要,100分
- js片段引用外部js,alert和document.write结果不一样呢? 大侠救命!在线等
- select 里面有了底色,想失去焦点时再变成白色
- javascript中如何将asc2码转化为字符串?在线等!!
- 高分求教一个javascript问题,急呀!!!
- 孟子大哥,小弟求教:你给出的用javascript在客户机端写文本文件的例子中的不解之处?
- 类似于QQ空间页面关闭提示代码。FF,IE兼容
- 定义Observer时,怎样向观察者传递一个标记?
$.ajax({
url:'export',
dataType:'json',
data:{
start: start.getTime(),
end: end.getTime()
},
success:function(doc){
alert("aaaaaa");
var events = [];
$(doc).find('task').each(function(){
events.push({
title:$(this).attr('title'),
start:$(this).attr('start'),
end:$(this).attr('end')
});
alert("....."+events);
});
}
});
}
为什么进不去success的function中,急!