current location:Home > Technical Articles > Web Front-end > Layui Tutorial

  • Layui import and export Excel methods
    Layui import and export Excel methods
    You can use the layui.excel plug-in to import Excel from layui. This plug-in imports excel based on H5's FileReader, exports excel functions based on XLSX.js, and downloads functions based on FileSaver.
    Layui Tutorial 15785 2019-08-01 09:56:03
  • How to display pictures in layui table
    How to display pictures in layui table
    To display pictures in the layui table, add template after filed, and add the page code for displaying pictures in template. In this way, the picture can be displayed in the table, but the picture style still needs to be fine-tuned.
    Layui Tutorial 16232 2019-08-01 09:23:23
  • How to display pictures in the list in layui
    How to display pictures in the list in layui
    How to display images in layui list: The image needs to use template.templet, use div style to put the image into the table, and then set its style through css.
    Layui Tutorial 5378 2019-07-31 15:02:13
  • How to use layui template engine
    How to use layui template engine
    Steps to use the layui template engine: 1. Write the template. You can use a script tag to store the template. 2. Create a view. Used to present rendering results. 3. Render template.
    Layui Tutorial 5682 2019-07-31 10:46:52
  • How to use layui
    How to use layui
    Layui usage tutorial: 1. Obtain the development package through the layui official website. 2. Introduce jquery framework into the page. 3. Copy the downloaded layer folder completely to the project. 4. Introduce the layer.js file in the layer directory. 5. Start the layer elastic layer journey.
    Layui Tutorial 15958 2019-07-31 10:09:39
  • How to use layui to pop up a form
    How to use layui to pop up a form
    Use layui to pop up a form: first set the click page pop-up event, and when the pop-up window is clicked, request the controller to render the form form data. At the same time, jump to the jsp page containing the form form.
    Layui Tutorial 5970 2019-07-31 08:59:58
  • How to fix the header of layui table
    How to fix the header of layui table
    Layui table header fixed: In layui, you can set the table header to be fixed through css style, and you can also use css to set the table header and table content to be inconsistent.
    Layui Tutorial 14953 2019-07-31 08:59:49
  • How layui determines password inconsistency
    How layui determines password inconsistency
    When registering, layui determines whether the passwords entered twice are consistent: after submitting the password data in the form, layui compares the passwords entered twice by calling js code to determine whether they are consistent.
    Layui Tutorial 7694 2019-07-31 08:59:38
  • Layui determines whether the form is empty
    Layui determines whether the form is empty
    Layui determines whether the form is empty: you can use the form's event onSubmit, which will be triggered just before the form is submitted. At this time, we can pass a callback function to this event, and in the callback function, write the verification of whether there is a blank form. code, and the code for the reminder.
    Layui Tutorial 6320 2019-07-31 08:59:28
  • How to connect layui and backend
    How to connect layui and backend
    Connect layui to the backend: layui has its own set of specific data formats for interaction (this is very important). The required parameters are code: 0, msg: "", count: data size (int), data: "data List". Generally we choose to encapsulate and return the receiving class.
    Layui Tutorial 14638 2019-07-30 14:20:44
  • How to clear the layui tree
    How to clear the layui tree
    How to clear the layui tree: first create a tree frame; then add branches to the original trunk; then add branches based on the previous ones; then add leaves based on the previous ones; finally add a clear button, and then call click Event to clear the tree.
    Layui Tutorial 3975 2019-08-01 16:35:31
  • How to backfill the value selected in layui drop-down
    How to backfill the value selected in layui drop-down
    First, obtain the selected value through the document.getElementsByName() method. Backfill the data through a spict() method.
    Layui Tutorial 3122 2019-07-29 17:01:30
  • Why layui is good
    Why layui is good
    The reason why layui is good is that it is light in size, rich in components, and compatible with all browsers currently used by humans (except IE6/7). Moreover, layui has also been automatically built, making it more suitable for production environments.
    Layui Tutorial 2243 2019-08-01 16:29:07
  • How to implement paging in layui
    How to implement paging in layui
    The main parts of layui paging are page (current page, such as 1 page), limit (currently displayed data, such as 10 pieces of data), and count (total number of data items in the current table). Other things are done by the layui paging plug-in. As long as page The three values ​​​​of , limit, and count can be implemented by paging.
    Layui Tutorial 7265 2019-07-29 11:06:13
  • How to use layui pop-up window
    How to use layui pop-up window
    There are three types of layui pop-up windows, namely: 1. confim type; 2. open type pop-up box; 3. msg type. , when using it, you only need to use the layer object plus the type name in layui.use(), such as layer.open(); later, you only need to fill in the corresponding parameters.
    Layui Tutorial 5390 2019-07-29 10:51:43

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28