|
楼主 |
发表于 2015-5-20 15:58:54
|
显示全部楼层
仔细阅读了一下手册,下面这段,最终解决了我的问题,解决方法是ajax套用在中间两行备注那里。$('#exampleModal').on('show.bs.modal', function (event) { var button = $(event.relatedTarget) // Button that triggered the modal var recipient = button.data('whatever') // Extract info from data-* attributes // If necessary, you could initiate an AJAX request here (and then do the updating in a callback). // Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead. var modal = $(this) modal.find('.modal-title').text('New message to ' + recipient) modal.find('.modal-body input').val(recipient)})
|
评分
-
查看全部评分
|