【发布时间】:2014-02-25 21:53:55
【问题描述】:
经过一番反复试验,我得到了一个远程模态窗口,使用 bootstrap 3.0.1 加载和销毁内容
passing a parameter to remote modal in bootstrap 3
这里是代码sn-p
$(document).ready(function(){
$('.pull-right').click(function(){
var theid = this.id;
//Open modal window passing the member id as a parameter
$('#myModal').modal({
remote: '/plugins/mission/councilmember_popup.php?MemberID='+theid,
show: true
});
//Destroy modal window content on close, otherwise parameter will be retained
$("#myModal").on('hidden.bs.modal', function () {
$(this).data('bs.modal', null);
});
});
});
我现在已经安装了 3.1.0,现在意识到远程模态不再起作用,我得到模态背景,但看不到模态窗口
似乎在 3.1.0 中找不到任何远程内容示例,谁能指点示例
【问题讨论】:
标签: twitter-bootstrap modal-dialog