js-监听弹窗弹出 Posted on 2018-10-23 18:37 12345678$('#code').on('shown.bs.modal', function (e) { // do something...})$(window).on('hidden.bs.modal', function() { $('#code').modal('hide'); alert('hidden');}); ps: 想监听全部 将selector 变成$(‘.modal’)就可以了