UNPKG

layui-layer

Version:

npm version of layui-layer

40 lines (22 loc) 535 B
# layui Layer A npm version of layerjs from [layui](http://www.layui.com/) ## Install with `npm`: ```sh npm i --save layui-layer ``` ### use with node ```javascript require("layui-layer"); layer.alert('Great!'); ``` when require layerui-layer, layer becomes a global object. The styles are packed together ### usage for web ```html <script src="../dist/layer.js"></script> ``` The styles are packed together ```javascript layer.alert('Great!'); ``` find more at http://www.layui.com/doc/modules/layer.html