Layer is a popular web bomb in recent years, she has a full range of solutions, dedicated to service all levels of the developer, your page will be easy to have a rich and friendly operation experience, and then through this article to introduce Layui common methods, need of friends reference, hope to help everyone.
Layer Introduction:
Layer (full name: Jquery-plugin-layer), a can make you think of the Web popup (layer) solution (JS component), the author of the Heart (rookie-level front siege division). Layer focuses on the user's flexible customization, which provides the power for different people to use their habits. The implication is that you can have a richer and more convenient experience with your page, which you simply need to configure with the relevant parameters at the time of invocation.
The benefits of layer are obvious compared to similar pop-up layer components, and she is as much more robust as possible in less code. Layer attaches great importance to performance improvement, using object-oriented thinking, in the multi-layer mode callback processing, with the other most layers of components do not have "independent conflict" (has been concerned about the new layer). You can safely pop up any number of layers on the page, and they don't interfere with each other. When asked about her compatibility, the layer must tell you that she is compatible with all browsers, including the old IE6.
Layer is a very useful UI component, popup, paging, etc.
http://layer.layui.com/
1 pop-up window with fork
Layer.open ({type:1,title:false,//Do not display title content: ' hehe ',//Captured element area: [' 400px ', ' 200px '],//wide-high//scrollbar:false, Cancel:function (Index) {layer.close (index);}});