如何在jquery中将json值设置为日历事件

我正在尝试给日历事件提供json值,我的json值来自database.but,下面的代码不工作。

<script>

    $(document).ready(function() {
        alert("sd");
        $('#calendar').fullCalendar({


            type:"GET",
            dataType: "json",
            url:'${pageContext.request.contextPath}/calender_view_get_json.json',

            events: [

                ],                    
        });

    });

</script>

我不知道如何设置json数据,有人能帮我解决这个问题吗?

转载请注明出处:http://www.wlshunda.com/article/20230526/2134799.html