How to use Layer popup / layer components in LayUI

The download address of the layer component: layer.layui.com

1. Introduce jQuery framework (above 1.8) in the page

2. Copy the layer folder in the download package to the project completely

3. Introduce layer.js in the layer directory

 

4. Write effect codes directly where needed

The effect code is available at https://layer.layui.com/ , click on the effect you want to achieve will directly display the corresponding code, just take it and use it!

 

Guess you like

Origin www.cnblogs.com/nbkls/p/12761487.html