如何完全销毁引导模式窗口? [英] how to destroy bootstrap modal window completely?
本文介绍了如何完全销毁引导模式窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经将模态窗口用于一个向导实现,它有大约 4,5 个步骤.我需要在最后一步(onFinish)和OnCancel 步骤之后完全销毁它,而无需刷新页面.我当然可以隐藏它,但是当我再次打开它时,隐藏模式窗口会恢复所有内容.有人可以帮我解决这个问题吗?
I've made use of modal window for a wizard implementation which has around 4,5 steps. I need to destroy it completely after the last step(onFinish) and OnCancel step without having a page refresh. I can of course hide it, but hiding modal windows restores everything as such when i open up it again. Could anyone help me on this issue?
谢谢任何提示答案对我都有帮助.
Thanks Any hints answers are helpful for me.
推荐答案
如果是 bootstrap 3 你可以使用:
if is bootstrap 3 you can use:
$("#mimodal").on('hidden.bs.modal', function () {
$(this).data('bs.modal', null);
});
这篇关于如何完全销毁引导模式窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文