Twitter bootstrap IE8中的引导模式问题(背景加载10-15次)

Twitter bootstrap IE8中的引导模式问题(背景加载10-15次),twitter-bootstrap,internet-explorer-8,modal-dialog,Twitter Bootstrap,Internet Explorer 8,Modal Dialog,先看代码 Html按钮: <a href="/ajax/addrecord.php" class="btn" data-toggle="modal">Add Record</a> 活动: $('[data-toggle="modal"]').click(function(e) { $('.modal').remove(); //to remove modals if already open e.preventDefault();

先看代码

Html按钮:

    <a href="/ajax/addrecord.php" class="btn" data-toggle="modal">Add Record</a>

活动:

    $('[data-toggle="modal"]').click(function(e) {
    $('.modal').remove(); //to remove modals if already open
    e.preventDefault();     
        $.ajax({
          url: $(this).attr('href'),              
          cache: false,
          success: function(data) {$('<div class="modal hide fade" style="width:850px;">' + data + '</div>').modal()}});
});
$('[data toggle=“modal”]')。单击(函数(e){
$('.modal').remove();//删除已打开的modals
e、 预防默认值();
$.ajax({
url:$(this.attr('href'),
cache:false,
成功:函数(数据){$(''+数据+'').modal()});
});
在IE8中,当我点击按钮时,它会加载背景,再次加载近15次,但不显示模式。我在bootstrap modal js的“background”函数中添加了一条日志消息,对于IE8,它给出了10条以上的消息,而在其他浏览器中,日志仅显示1条消息


有人能给我提示一下这个问题吗?

我也遇到了同样的问题,并通过使用
href
数据远程
的完整路径修复了它: