快速引用
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>layui的使用</title>
<!-- layui的核心css文件-->
<link rel="stylesheet" type="text/css" href="layui-v2.6.8/layui/css/layui.css"/>
<!-- layui的核心js文件 -->
<script src="layui-v2.6.8/layui/layui.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<script>
layui.use(['layer', 'form'], function(){
var layer = layui.layer
,form = layui.form;
layer.msg('Hello World');
});
</script>
</body>
</html>