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
欧阳克2017-07-05 11:08:17
你在子页面里$("#modal").modal("hide")肯定不能关闭呀!
你可以在子页面里调用父页面的一个方法,这个方法里写$("#modal").modal("hide")!
phpcn_u15822017-07-05 11:08:17
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