bootstrap-model,模态框,对话框打开关闭事件监听

事件: 描述:

show.bs.modal 在调用 show 方法后触发。

shown.bs.modal 当模态框对用户可见时触发(将等待 CSS 过渡效果完成)。

hide.bs.modal 当调用 hide 实例方法时触发。

hidden.bs.modal 当模态框完全对用户隐藏时触发。

$('#myModal').on('hidden.bs.modal', function () {

//你的代码

})