84669 人学习
152542 人学习
20005 人学习
5487 人学习
7821 人学习
359900 人学习
3350 人学习
180660 人学习
48569 人学习
18603 人学习
40936 人学习
1549 人学习
1183 人学习
32909 人学习
大家好 我想问一下 在iframe子页面 通过window.parent.document打开父页面的modal层,这样父页面的modal关闭方法$("#modal").modal("hide")不能正常关闭,有没有大神知道这是什么原因
闭关修行中......
雷雷
$('#id', window.parent.document).modal('隐藏');
最后采取了一种不太好的方法暂时解决,先show再hide,$("#modal").modal("show").modal("hide"),这样可以解决,只是弹出层关闭的时候会因为show闪一下,还没有找到好的解决办法
雷雷
$('#id', window.parent.document).modal('隐藏');
最后采取了一种不太好的方法暂时解决,先show再hide,$("#modal").modal("show").modal("hide"),这样可以解决,只是弹出层关闭的时候会因为show闪一下,还没有找到好的解决办法