Home > Web Front-end > CSS Tutorial > Sharing examples of common methods in jQuerylayui

Sharing examples of common methods in jQuerylayui

小云云
Release: 2018-01-13 10:06:25
Original
1981 people have browsed it

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);
}
});
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template