BootStrap中使用多层模态框导致下层无法出现滚动的问题
在顶层modal关闭后,其中document.body的缺少了class=“modal-open”,因此使用modal在关闭的会触发hidden.bs.modal事件的功能,在顶层modal关闭的时候将class添加进去
$("#model").modal('hide'); //手动关闭
$('#model').on("hidden.bs.modal",function(){
$(document.body).addClass("modal-open");
});