如何像Google日历模式一样打开模式,在完整日历中单击“日”活动



i制作一个引导程序对话框,以获取事件信息。现在,我想像Google日历对话框一样打开该对话框。就像附近的页面中间一样。

<div id="addClassSchedule1" class="modal fade" role="dialog">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Modal Header</h4>
      </div>
      <div class="modal-body">
        <p>Some text in the modal.</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>
dayClick: function(date, jsEvent, view) {   
  $('#addClassSchedule1').modal()
},

请打开Google日历,然后单击任何日期,您将了解我的问题。

尝试

$('#addClassSchedule1').modal('show');

最新更新