//usertable的页面刷新
$("#usertable").bootstrapTable('refresh');

//第一种:当模态框完全关闭时的初始化
$('#myModal').on('hide.bs.modal', function () {
    $('input').removeAttr("readonly");
}).modal('hide');
//第二种:当模态框完全关闭时的初始化
$('#addItemModel').on('hidden.bs.modal', function (e) {
    //第一种:form表单清空
     $("#item_form")[0].reset();
     //第二种:清除模态框中的内容 
    document.getElementById("contact_form").reset();
}).modal('hide');;

//当模态框完全打开时的初始化
$("#userModel").on("shown.bs.modal", function () {
    $("#usertable").bootstrapTable('refresh');
}).modal('show');

 

参考地址:https://blog.csdn.net/qq_42806727/article/details/90067739

相关文章:

  • 2021-08-21
  • 2021-06-24
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
猜你喜欢
  • 2022-12-23
  • 2021-12-05
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
相关资源
相似解决方案