From 17adc4346f22e64d4bc59f2fd2f18aaf82641b23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Fri, 22 Sep 2023 00:02:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20upload=20=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/upload.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/upload.html b/examples/upload.html index 16dabb27..766b4ac7 100644 --- a/examples/upload.html +++ b/examples/upload.html @@ -98,7 +98,7 @@ layui.use(['upload', 'element'], function(){ var uploadInst = upload.render({ elem: '#test1', - url: 'https://httpbin.org/post', + url: '', // size: 2000, //限制文件大小,单位 KB // accept: 'file', method: 'get', @@ -161,7 +161,7 @@ layui.use(['upload', 'element'], function(){ // 演示多图片上传 upload.render({ elem: '#test2', - url: 'https://httpbin.org/post', + url: '', multiple: true, // 多文件 unified: true, // 一起上传 --- 2.8.8+ accept: 'images', @@ -188,7 +188,7 @@ layui.use(['upload', 'element'], function(){ var demoListView = $('#demoList'); var uploadListIns = upload.render({ elem: '#testList', - url: 'https://httpbin.org/post', + url: '', accept: 'file', multiple: true, number: 5, @@ -328,7 +328,7 @@ layui.use(['upload', 'element'], function(){ upload.render({ elem: '#test8', - url: 'https://httpbin.org/post', + url: '', done: function(res){ console.log(res); }