The front-end js layer closes another page opened through the url, and the redirected page cannot be closed?

Solution :

window.top.layerIndex=window.top.layer.open (remark: fill in the main page)
window.top.layer.close(window.top.layerIndex); (remark: fill in the redirected page)

Example: 

 window.top.layerIndex=window.top.layer.open

 window.top.layer.close(window.top.layerIndex);

Guess you like

Origin blog.csdn.net/qq_70095877/article/details/129646487