• 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 () {
      // 执行一些动作...
    })

     

  • 相关阅读:
    团队冲刺0202
    团队冲刺0201
    第十五周
    第十四周博客
    十三周总结
    软件设计模式13
    软件设计模式12
    软件构造4
    软件设计模式11
    软件设计模式10
  • 原文地址:https://www.cnblogs.com/GoCircle/p/8251984.html
Copyright © 2020-2023  润新知