获取Bootstrap模态框显示或者关闭的方法
2019-01-07 本文已影响13人
lvyweb
标签(空格分隔): js
- 当模态框显示要触发的函数
$('.model').on("show.bs.modal",function(){
console.log("model show");
});
- 当模态框关闭要触发的函数
$('.model').on("hide.bs.modal",function(){
console.log("model close");
});