Layer is a web elastic layer component that has been favored in recent years. It has a comprehensive solution and is committed to serving developers of all levels. Your page will easily have a rich and friendly operating experience. Next, I will introduce you to the common methods of layui through this article. Friends who need it can refer to it. I hope it can help you.
layer introduction:
layer (full name: jQuery-plugin-layer), a web pop-up (layer) solution (js component) that can be implemented as you think of it, the author Xianxin (rookie-level front-end siege engineer). The layer focuses on flexible customization by users to provide power for different people’s usage habits. The significance is that it can give your page a richer and more convenient operating experience, and this can be easily achieved by simply configuring the relevant parameters when calling.
Compared with similar pop-up layer components, layer has obvious advantages. It tries its best to display more powerful functions with less code. Layer pays special attention to improving performance and adopts object-oriented thinking. In the callback processing of multi-layer mode, it has the "independence and non-conflict" that most other layer components do not have (people have paid attention to the new version of layer). You can safely pop up any number of layers on the page without them getting in the way of each other. When you ask about her compatibility, layer must tell you that she is compatible with all browsers, including the ancient ie6.
layer is a very useful ui component, pop-up, paging, etc.
http://layer.layui.com/
1 Pop-up window with a cross
layer.open({ type: 1, title: false, //不显示标题 content: 'hehe', //捕获的元素 area: ['400px', '200px'], //宽高 //scrollbar: false, cancel: function(index) { layer.close(index); } });
Related recommendations:
layui front-end framework date control usage method
layui paging Effect implementation code sharing
layui popup layer effect code sharing
The above is the detailed content of Sharing examples of common methods in jQuerylayui. For more information, please follow other related articles on the PHP Chinese website!