<div id="exampleModal"> 。。。</div> <button data-toggle="modal" data-target="#exampleModal"></button> $('#exampleModal').on('show.bs.modal', function(event) { $.ajax(...); $(this).modal('hide'); }); 第一次打开窗口会有一次 ajax ,不刷新,第二次打开窗口会有两次 ajax 。是因为$('#exampleModal')重复捆绑 modal 。怎样才能在不刷新前提下多次打开窗口但只绑定一个 modal 。
