bootstrap 弹窗 数据清除


bootstrap modal操作简单易用,

 

//清除弹窗原数据
$("#create_modal").on("hidden.bs.modal", function() {
    $(this).removeData("bs.modal");
});

 

另附上modal一些触发函数

事件描述实例show.bs.modal在调用 show 方法后触发。

$('#identifier').on('show.bs.modal', function () { // 执行一些动作... })

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

$('#identifier').on('shown.bs.modal', function () { // 执行一些动作... })

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

$('#identifier').on('hide.bs.modal', function () { // 执行一些动作... })

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

$('#identifier').on('hidden.bs.modal', function () { // 执行一些动作... })

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM