0
我的網站使用引導3我試圖做出事件的模式爲點擊在fullcalendar的開放,但該事件的標題和內容沒有改變,請幫我謝謝fullcalendar模式引導
eventClick: function(event, calEvent, jsEvent, view, element) {
$('#view_event').modal({
title: event.title,
content: event.content
});
}
<div class="modal fade" id="view_event">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="event_title">Modal title</h4>
</div>
<div class="modal-body">
view
</div>
<div class="modal-footer">
<a href="#" class="btn btn-danger" data-option="remove">remove</a>
<a href="#" class="btn btn-primary" data-option="edit">edit</a>
</div>
</div>
</div>
</div>