Bind Function to Bootstrap Modal Event 模态对话框事件绑定函数
bootstrap modal 事件有 :hide、show
如何给hide、show事件绑定函数呢?
可以这样写
$('#myModal').on('shown.bs.modal',
function () {
//do something
})
$('#myModal').on('hidden.bs.modal',
function () {
//do som
原创
2015-11-17 23:31:30 ·
819 阅读 ·
0 评论