前端 js layer关闭通过url打开的另一个页面 , 无法关闭跳转的页面 ?

解决方法 :

window.top.layerIndex=window.top.layer.open      ( 备注 : 在主页面填写)
window.top.layer.close(window.top.layerIndex);     ( 备注 : 在跳转的页面填写)

示例 : 

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

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

猜你喜欢

转载自blog.csdn.net/qq_70095877/article/details/129646487