|
|
|
@ -44,7 +44,7 @@ layui.use(['upload','form','element','layer','flow'], function(){
@@ -44,7 +44,7 @@ layui.use(['upload','form','element','layer','flow'], function(){
|
|
|
|
|
,accept:'file' |
|
|
|
|
,acceptMime:'image/webp,image/jpeg,image/pjpeg,image/bmp,image/png,image/x-png,image/gif' |
|
|
|
|
,exts: 'jpg|jpeg|png|gif|bmp|webp' |
|
|
|
|
,size:5120 |
|
|
|
|
,size:10240 |
|
|
|
|
,before: function(obj){ //obj参数包含的信息,跟 choose回调完全一致,可参见上文。
|
|
|
|
|
layer.load(); //上传loading
|
|
|
|
|
} |
|
|
|
@ -88,7 +88,7 @@ layui.use(['upload','form','element','layer','flow'], function(){
@@ -88,7 +88,7 @@ layui.use(['upload','form','element','layer','flow'], function(){
|
|
|
|
|
,acceptMime:'image/webp,image/jpeg,image/pjpeg,image/bmp,image/png,image/x-png,image/gif' |
|
|
|
|
,exts: 'jpg|jpeg|png|gif|bmp|webp' |
|
|
|
|
,multiple:true |
|
|
|
|
,size:5120 |
|
|
|
|
,size:10240 |
|
|
|
|
,number:5 //可同时上传数量
|
|
|
|
|
,before: function(obj){ //上传之前的回调
|
|
|
|
|
//清空显示区域
|
|
|
|
|