tôi đã cố gắng để đưa fullCalendar 2.1.1 nhưng nó không làm việc ...
<link href='/css/fullcalendar.css' rel='stylesheet' />
<link href='/css/fullcalendar.min.css' rel='stylesheet' />
<link href='/css/fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='/js/moment.min.js'></script>
<script src='/js/jquery.min.js'></script>
<script src='/js/fullcalendar.min.js'></script>
<script src="/js/jquery-ui.custom.min.js"></script>
<script>
$(document).ready(function() {
$('#calendar').fullCalendar({
defaultDate: '2014-09-12',
editable: true,
eventLimit: true, // allow "more" link when too many events
});
});
</script>
nhưng khi tôi đi đến thử mở nó tôi gặp lỗi này
SyntaxError: missing) after argument list ..."'").replace(/"/g,""").replace(/\n/g,"")}function P(t){returnt.replace(/
TypeError: $(...).fullCalendar is not a function
eventLimit: true, // allow "more" link when too many events
Ai đó có thể giúp tôi? tôi đã theo dõi Tài liệu sử dụng cơ bản nhưng nó vẫn không hoạt động.
Có vẻ như 'fullcalendar.min.js' được rút gọn không chính xác. Trước hết, hãy thử [phiên bản CDN] (http://cdnjs.cloudflare.com/ajax/libs/fullcalendar/2.1.1/fullcalendar.min.js); nếu nó hoạt động, chỉ cần tải xuống và thay thế tập lệnh hiện tại bằng bản sao. – raina77ow
nó đã làm các trick, cảm ơn rất nhiều –