Browse Source

图片懒加载

pull/36/head
xiaoz 6 years ago
parent
commit
6c2d717e3e
  1. 6
      static/embed.js

6
static/embed.js

@ -10,13 +10,15 @@
// }); // });
// }); // });
// 这个东西没值,你拿不到 // 这个东西没值,你拿不到
layui.use(['upload','form','element','layer'], function(){ layui.use(['upload','form','element','layer','flow'], function(){
var upload = layui.upload; var upload = layui.upload;
var form = layui.form; var form = layui.form;
var element = layui.element; var element = layui.element;
var layer = layui.layer; var layer = layui.layer;
var storage = $('#storage input[name="storage"]:checked ').val(); var storage = $('#storage input[name="storage"]:checked ').val();
//图片懒加载
var flow = layui.flow;
flow.lazyimg();
//图片查看器 //图片查看器
layer.photos({ layer.photos({
photos: '#found' photos: '#found'

Loading…
Cancel
Save