Close layer popup

1. Close the popup layer (iframe layer, etc.) of individual pages

Just write the following code in the "close" method

var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
parent.layer.close(index); //再执行关闭

2. Popup window about the current page (inquiry layer, etc.)

Write the following code in the method of triggering the operation

//关闭当前弹窗
layer.closeAll();

 

Published 77 original articles · 100 likes · 70,000+ views

Guess you like

Origin blog.csdn.net/super_DuoLa/article/details/102796246