标签:head admin 路径 div 直接 htm load use script
最简单
<!DOCTYPE html>
<html>
<head>
<title></title>
{load href="__STATIC__/admin/layui.css"}
{load href="__STATIC__/admin/style.css"}
</head>
<body>
<script src="__STATIC__/layui/layui.js"></script>
<div class="" id="dds">测试下</div>
<!-- 注意:如果你直接复制所有代码到本地,上述js路径需要改成你本地的 -->
<script>
// 只需要这么一点点就可以了
layui.use(‘layer‘);
$("#dds").click(function(){
layer.msg(‘dds‘)
});
</script> </body> </html>
标签:head admin 路径 div 直接 htm load use script
原文地址:https://www.cnblogs.com/wesky/p/9648155.html