From 2226f26114883ff77be62f579763af3da5439915 Mon Sep 17 00:00:00 2001 From: sight <1453017105@qq.com> Date: Tue, 28 Nov 2023 20:16:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20`layer`=20=E5=92=8C=20`upl?= =?UTF-8?q?oad`=20=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/layer/index.md | 5 +++-- docs/upload/detail/options.md | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/layer/index.md b/docs/layer/index.md index 754f247d..eaddedf9 100644 --- a/docs/layer/index.md +++ b/docs/layer/index.md @@ -34,7 +34,7 @@ toc: true | 关闭 : | - | | [layer.close(index, callback)](#close) | 关闭对应的层,核心方法。 | | [layer.closeAll(type, callback)](#closeAll) | 关闭所有对应类型的层。 | -| [layer.closeLast(type)](#closeLast) 2.8+ | 关闭最近打开的对应类型的层。 | +| [layer.closeLast(type, callback)](#closeLast) 2.8+ | 关闭最近打开的对应类型的层。 | | 其他 : | - | | [layer.config(options)](#config) | 全局配置默认属性。 | | [layer.ready(callback)](#ready) | 样式初始化就绪。 | @@ -385,9 +385,10 @@ layer.closeAll('tips'); // 关闭所有的 tips 层

关闭最近一次打开的层 2.8+

-`layer.closeLast(type);` +`layer.closeLast(type, callback);` - 参数 `type` : 弹层的类型。可选值:`dialog,page,iframe,loading,tips` +- 参数 `callback` : 关闭弹层后的回调函数 该方法用于关闭最近一次打开的对应类型的层。 diff --git a/docs/upload/detail/options.md b/docs/upload/detail/options.md index 114323f0..00974de7 100644 --- a/docs/upload/detail/options.md +++ b/docs/upload/detail/options.md @@ -100,7 +100,11 @@ data: { string -- + + +`json` + +