bootstrap中模态框打开关闭后无法再次打开
2018-10-23 08:44
155 查看
最主要的原因就是模态框无法被找到,这时有两个解决问题的方法
1.模态框关闭时刷新界面
$(’#myModals’).on(“hidden.bs.modal”, function () {
//关闭模态框后刷新当前界面
window.location.reload();
});
2.模态框关闭时清除一下模态框数据
$(’#myModals’).on(“hidden.bs.modal”, function () {
//关闭模态框后清除模态框数据
$(this).removeData(‘bs.modal’);
});
相关文章推荐
- Bootstrap 模态框 + iframe > 打开子页面 > 数据传输/关闭模态框
- bootstrap模态框出现关闭后再打开滚动条不回顶的解决办法
- vmware异常关闭后无法再次打开的解决方法
- bootstrap 链接打开模态框数据无法刷新的解决方案
- 解决Bootstrap模态窗口Modal中使用Kindeditor或UEditor编辑器 点击关闭弹窗 出现第二次无法加载的问题
- Angular4_bootstrap模态框打开关闭,点击背景事件
- 如何实现EditText的历史记录功能(关闭后再次打开显示上次的记录)?
- 阻止Bootstrap 模态框在点击页面空白处关闭方法
- Oozie时bin/oozied.sh start或bin/oozied.sh run出现Bootstrap进程无法启动,http://bigdatamaster:11000/oozie界面也无法打开?E0103: Could not load service classes, java.lang.ClassNotFoundException: Class org.apache.oozie.ser
- BootStrap 3 模态框禁用空白处点击关闭
- 火狐打开本地bootstrap页面,小图标无法正常显示问题
- VC++6.0无法打开文件的解决办法(一点打开窗口就自动关闭了)
- Angular4_Bootstrap 模态框避免点击背景处关闭(ng-bootstrap)
- IE 无法正常打开,刚启动就关闭
- Bootstrap 模态框自定义点击和关闭事件详解
- io重定向打开关闭 Eclipse中c开发printf无法输出解决办法
- BootStrap 模态框实现刷新网页并关闭
- 关闭光猫DHCP服务器后无法打开光猫登录页面
- bootstrap下modal模态框中webuploader控件按钮异常(无法点击)问题解决办法【转】
- bootstrap 模态窗口 第二次无法加载js 的解决办法