如何彻底销毁引导模态窗口? [英] 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.
推荐答案
如果是引导程序3,则可以使用:
if is bootstrap 3 you can use:
$("#mimodal").on('hidden.bs.modal', function () {
$(this).data('bs.modal', null);
});
这篇关于如何彻底销毁引导模态窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文