This commit is contained in:
贤心
2018-08-18 20:46:14 +08:00
parent 72253f671e
commit e2a2c08402
23 changed files with 2203 additions and 506 deletions

View File

@@ -88,9 +88,10 @@ layui.use('upload', function(){
var uploadInst = upload.render({
elem: '#test1'
,url: '/upload/'
,url: 'http://httpbin.org/image'
,size: 2000 //限制文件大小,单位 KB
,accept: 'file'
//,accept: 'file'
,method: 'get'
,fileAccept: 'image/*'
,exts: "jpg|png|gif|bmp|jpeg|pdf"
,data: { //额外参数