Bootstrap 模式:關閉當前,打開新 - Bootstrap modal: close current, open new

問題:

I have looked for a while, but I can't find a solution for this.我已經尋找了一段時間,但我找不到解決方案。 I want the following:我想要以下內容:

  • Open an URL inside a Bootstrap modal.在 Bootstrap 模式中打開一個 URL。 I have this working off course.我有這個工作。 So the content is loaded dynamically.所以內容是動態加載的。
  • When an user pushes a button inside this modal, I want the current modal to hide, and immediately after that, I want a new modal to open with the new URL (which the user clicked on).當用戶按下此模式內的按鈕時,我希望隱藏當前模式,然後立即使用新 URL(用戶單擊的 URL)打開一個新模式。 This content of the 2nd modal is also loaded dynamically.第二個模態的內容也是動態加載的。
  • If the user then closes that 2nd modal, the first modal must come back again.如果用戶隨後關閉了第二個模態,則第一個模態必須再次返回。

I have been staring at this for days, hope someone can help me.我已經盯着這個好幾天了,希望有人能幫助我。

Thanks in advance.提前致謝。


解決方案:

參考: https://stackoom.com/en/question/1Eagu
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章