LhgDialog pop-up problem solution
2016-08-23
0 0 0
no vote
Other
Earn points
When previous studies JEECG, found that the rapid development platform uses lhgDialog as a pop-up window solution
After thorough research and found JEECG and no good solution to the problem of multi-layered pop-up window, after analysis, found to be in the acquisition and lhgDialog parent window itself.
lhgDialog uses iframe pop-up mode, so need to get the form itself and the parent page by frameElement.api, frameElement.api.opener,
Multi-window, then just get one more parent.frameElement.api; parent.frameElement.api.opener; you can also call in lhgDialog of
Added parent page parameter parent: PWindowapi. Of course, preferably before joining the parent page parameter to judge, to determine whether there is a parent page.
Another: when you close the window, the need to carefully deal with the issue of JS call, do not close the page after page of JS to do the operation itself, or easily reported insuffic
After thorough research and found JEECG and no good solution to the problem of multi-layered pop-up window, after analysis, found to be in the acquisition and lhgDialog parent window itself.
lhgDialog uses iframe pop-up mode, so need to get the form itself and the parent page by frameElement.api, frameElement.api.opener,
Multi-window, then just get one more parent.frameElement.api; parent.frameElement.api.opener; you can also call in lhgDialog of
Added parent page parameter parent: PWindowapi. Of course, preferably before joining the parent page parameter to judge, to determine whether there is a parent page.
Another: when you close the window, the need to carefully deal with the issue of JS call, do not close the page after page of JS to do the operation itself, or easily reported insuffic
javascript
解决方案
窗口
问题
lhgDialog
Related Source Codes
WeChat mini program development
0
0
no vote
Image cropping and compression processing on mobil
0
0
no vote
Classic Interview Questions for Digital City Front
0
0
no vote
3D building large screen display
0
0
no vote
six million six hundred and sixty-six thousand six
0
0
no vote
No comment