一点优化
parent
ec9c9ead33
commit
93bb0735bc
|
@ -1 +1 @@
|
|||
v1.1(20180504)
|
||||
v1.1(20180506)
|
|
@ -9,10 +9,13 @@ layui.use(['layer', 'form','element','upload','flow'], function(){
|
|||
var element = layui.element;
|
||||
var upload = layui.upload;
|
||||
var flow = layui.flow;
|
||||
//当你执行这样一个方法时,即对页面中的全部带有lay-src的img元素开启了懒加载(当然你也可以指定相关img)
|
||||
// flow.lazyimg({
|
||||
// elem:'#found-img img'
|
||||
// });
|
||||
//图片懒加载
|
||||
flow.lazyimg({
|
||||
elem:'#found-img img'
|
||||
});
|
||||
flow.lazyimg({
|
||||
elem:'#adminpic img'
|
||||
});
|
||||
|
||||
//首页拖拽上传
|
||||
upload.render({
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
|
||||
<link rel="Bookmark" href="favicon.ico" />
|
||||
<link rel="stylesheet" href="./static/layui/css/layui.css">
|
||||
<link rel="stylesheet" href="./static/style.css?v=1.1">
|
||||
<link rel="stylesheet" href="./static/style.css?v=1.10506">
|
||||
<script src = "https://libs.xiaoz.top/clipBoard.js/clipBoard.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
|
Loading…
Reference in New Issue