Symfony - 无法读取属性' stripTime'错误

时间:2018-01-16 13:32:09

标签: javascript php symfony

我正在使用ancarebeca / FullCalendarBundle并且我已正确设置了所有内容。

当我尝试访问日历布局时,我没有在页面上获取事件,我只在我访问/全日历/加载数组时才获得它们!

这是我得到的错误:

Uncaught TypeError: Cannot read property 'stripTime' of undefined
at v (fullcalendar.min.js:6)
at u (fullcalendar.min.js:6)
at t (fullcalendar.min.js:6)
at s (fullcalendar.min.js:6)
at fullcalendar.min.js:6
at Object.success (fullcalendar.min.js:6)
at j (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at x (jquery.min.js:4)
at XMLHttpRequest.<anonymous> (jquery.min.js:4)

这是我的头部布局:

&#13;
&#13;
{% block stylesheets %}
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="{{ asset('bundles/fullcalendar/css/fullcalendar/fullcalendar.min.css') }}" />
{% endblock %}

{% block javascripts %}
<script type="text/javascript" src="{{ asset('bundles/fullcalendar/js/fullcalendar/lib/jquery.min.js') }}"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-confirmation/1.0.7/bootstrap-confirmation.js"></script>
<script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
<script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>
<script type="text/javascript" src="{{ asset('bundles/fullcalendar/js/fullcalendar/lib/moment.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('bundles/fullcalendar/js/fullcalendar/fullcalendar.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('bundles/fullcalendar/js/fullcalendar/fullcalendar.default-settings.js') }}"></script>
{% endblock %}
&#13;
&#13;
&#13;

我不知道为什么我会遇到这种类型的错误,捆绑包必须正常工作

感谢您的帮助

0 个答案:

没有答案