Layer Close the example of the specified pop-up layer

First, you need to give a layer (assignment) when a layer is pop-up, such as:

  var mylay = layer.Open ({Type: 2, Content: 'Layer.html', Title: False, Area: ['500px', '500px']});  
When you need to turn off the specified pop-up layer, direct:

Layer.close (Mylay)

 If the JS is written in the pop-up layer, the pop-up layer itself is turned off, First get the name of the pop-up layer, then turn it off   
Var mylay = parent.Layer.GetFrameIndex (Window.Name); Parent.Layer.close (Mylay);

The above example is that the example of the designated pop-up layer is the full content of Xiaobian sharing, I hope to give you a reference, I hope everyone will support Tumi Cloud.
                     
© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment