方便学习,不需要下载源文件到本地调用。

示例:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" />
</head>
<body>
<script src="https://www.layuicdn.com/layui/layui.js"></script>
<!-- 您的 Layui 代码 start-->
<script type="text/javascript">
layui.use(['laydate', 'laypage', 'layer', 'table', 'carousel', 'upload', 'element'], function() {
var laydate = layui.laydate // 日期
,laypage = layui.laypage // 分页
,layer = layui.layer // 弹层
,table = layui.table // 表格
,carousel = layui.carousel // 轮播
,upload = layui.upload // 上传
,element = layui.element; // 元素操作 等等...
/*layer 弹出一个示例 */
layer.msg('Hello World');
});
</script>
</body>
</html>