zoukankan      html  css  js  c++  java
  • 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 () {
      // 执行一些动作...
    })

     

  • 相关阅读:
    dota监测
    R0:前瞻
    Python基础
    c++成员函数
    异步IO简介
    使用自定义类型做qmap,qhash的key
    c++ primer 7 函数
    c++ primer 6 语句
    c++ primer 5 表达式
    c++ primer 4 数组和指针
  • 原文地址:https://www.cnblogs.com/GoCircle/p/8251984.html
Copyright © 2011-2022 走看看