Browse Source

更新 upload 用例

pull/1368/head
贤心 1 year ago
parent
commit
3a27df77cc
  1. 4
      examples/upload.html

4
examples/upload.html

@ -191,10 +191,10 @@ layui.use(['upload', 'element'], function(){
url: 'https://httpbin.org/post', url: 'https://httpbin.org/post',
accept: 'file', accept: 'file',
multiple: true, multiple: true,
number: 3, number: 5,
auto: false, auto: false,
bindAction: '#testListAction', bindAction: '#testListAction',
size: 30, // size: 30,
choose: function(obj){ choose: function(obj){
var files = this.files = obj.pushFile(); // 将每次选择的文件追加到文件队列 var files = this.files = obj.pushFile(); // 将每次选择的文件追加到文件队列
//读取本地文件 //读取本地文件

Loading…
Cancel
Save