Introduction of common methods of jQuery layui

  • 2021-07-04 18:13:01
  • OfStack

Introduction to layer:

layer is a popular web elastic layer component in recent years. It has all-round solutions and is committed to serving developers at all levels. Your page will easily have a rich and friendly operation experience.

layer (full name: jQuery-plugin-layer), an web pop-up (layer) solution (js component) that you can think of, is written by Xianxin (rookie front-end siege division). layer focuses on users' flexible customization and provides power for different people's usage habits. Its significance is that it can make your page have a richer and more convenient operation experience, which can be easily realized by simply configuring relevant parameters when calling.

Compared with similar pop-up layer components, layer has obvious advantages, and it shows more robust functions with less code as much as possible. layer pays special attention to the improvement of performance, and adopts the object-oriented idea to implement it. In the callback processing of multi-tier mode, it has "independence and non-conflict" that most other tier 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 interfering with each other. When you ask about her compatibility, layer must tell you that she is compatible with 1-cut 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 fork


layer.open({
type: 1,
title: false, // Do not display captions 
content: 'hehe', // Captured elements 
area: ['400px', '200px'], // Width and height 
//scrollbar: false,
cancel: function(index) {
layer.close(index);
}
});

Above is this site to introduce you jQuery layui commonly used methods, I hope to help you, if you have any questions welcome to leave me a message, this site will reply to you in time!


Related articles: