📜  从另一个模态引导弹出模态 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:34.050000             🧑  作者: Mango

代码示例1
// Hide current modal before opening new one
$("#idModal").modal('hide');
$("#idModal2").modal() // or .modal("show");

// show 1st modal again after closing 2nd modal
$("#idModal2").on('hidden.bs.modal', () => $("#idModal").modal('show'))
// using hide.bs.modal might cause modal to stop scrolling!!!