Hello everyone, I would like to ask about opening the modal layer of the parent page through window.parent.document in the iframe sub-page, so that the modal closing method $("#modal").modal("hide") of the parent page cannot be closed normally. ,Does anyone know the reason for this
$('#id', window.parent.document).modal('hide');
Finally, we adopted a not-so-good method to solve it temporarily. Show first and then hide, $("#modal").modal("show").modal("hide"). This can solve the problem, but the pop-up layer is closed. Sometimes it will flash due to show, but I haven’t found a good solution yet