You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
创建模态框元素和模态框实例,设置
data-bs-backdrop
为static
不使用
data-bs-dismiss=modal
关闭模态框,改为使用history.back()
设置模态框的
shown.bs.modal
事件,定向到新的 Hash设置模态框的
hidePrevented.bs.modal
事件,执行history.back()
在需要触发模态框的 Route 的载入事件中,判断模态框元素的
display
属性,如果是block
,则关闭模态框Beta Was this translation helpful? Give feedback.
All reactions