Home >Web Front-end >Layui Tutorial >How to introduce layui into the development framework

How to introduce layui into the development framework

藏色散人
藏色散人Original
2020-11-09 10:34:493319browse

Method to introduce layui into the development framework: first download the layui framework package; then copy the layui folder into the project location; then import "layui.all.js", "layui.css" and jquery can complete the configuration.

How to introduce layui into the development framework

Recommended: "layui tutorial"

layui is a front-end UI framework written using its own module specifications. Following the writing and organizational form of native HTML/CSS/JS, the threshold is extremely low and you can use it right away. It is minimalist on the outside but full on the inside. It is light in size and rich in components. Every detail from the core code to the API has been carefully crafted, making it very suitable for rapid interface development.

How to import layui into the development framework:

1. Download the framework package (http://www.layui.com/)

2. Copy the layui folder Enter the project location

How to introduce layui into the development framework

3. Import layui.all.js layui.css and jquery into the page to complete the configuration

<script type="application/javascript" src="jquery-3.2.1.js"></script>
<script type="application/javascript" src="layui/lay/dest/layui.all.js"></script>
<link rel="stylesheet" href="layui/css/layui.css">

The above is the detailed content of How to introduce layui into the development framework. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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