Home > Web Front-end > Layui Tutorial > what is layui

what is layui

(*-*)浩
Release: 2019-07-25 11:52:06
Original
5764 people have browsed it

layui is a front-end UI framework written using its own module specifications. It follows the writing and organizational form of native HTML/CSS/JS. The threshold is extremely low and can be used out of the box.

what is layui

It is minimalist on the outside, but full of content on the inside. It is light in size and rich in components, from core code to API. Every detail has been carefully crafted, which is very suitable for rapid interface development.

The first version of layui was released in the autumn of 2016. It is different from those UI frameworks based on the bottom layer of MVVM, but it does not go against the grain, but believes in returning to nature.

To be precise, it is more tailored for server-side programmers. You don’t need to get involved in the complex configuration of various front-end tools. You only need to face the browser itself, so that all the elements you need can be integrated with the browser itself. Interaction is at your fingertips here.

In fact, layui is more oriented to back-end developers, so in terms of organizational form, it resolutely adopts the AMD-like module management method that uses the browser as the host a few years ago, but it is not limited to It has its own pattern that is more lightweight and simpler than CommonJS.

layui is defined as "classic modularity". It does not deliberately emphasize the concept of "module" itself, but intentionally avoids the mainstream solutions of the current JS community and tries to interpret efficiency in the simplest way possible! Its so-called classic lies in its obsession with returning to nature. It organizes modules in a way that is generally recognized by current browsers!

layui believes that this lightweight organization method can still fill many scenarios other than WebPack. Therefore, it insists on using classic modularity, which allows people to avoid the complex configuration of tools and return to the original HTML/CSS/JavaScript itself!

Layui advocates returning to nature and following the original element writing rules, so generally speaking, you are still writing basic HTML and CSS code. The difference is that in the HTML structure and CSS definition You need to follow certain norms.

For more technical articles related to Layui, please visit the Layui Tutorial column to learn!

The above is the detailed content of what is layui. 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