From cb073cac8419707a2e479fb5ee447fa9d9b008ca Mon Sep 17 00:00:00 2001 From: tyc1998 <37654563+TobiasTao@users.noreply.github.com> Date: Mon, 26 Apr 2021 22:53:42 +0800 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b24ef2c2..ce36b3c2e 100644 --- a/README.md +++ b/README.md @@ -447,7 +447,7 @@ if (xhr.status === 200) { | filename(name: string): string | 文件名安全处理 | name => name.replace(/\W/g, '') | | accept | 文件上传类型,同[input accept](https://www.w3schools.com/tags/att_input_accept.asp) | - | | validate(files: File[]) => string \| boolean | 校验,成功时返回 true 否则返回错误信息 | - | -| handler(files: File[]) => string \| null | 自定义上传,当发生错误时返回错误信息 | - | +| handler(files: File[]) => string \| null | 自定义上传,当发生错误时返回错误信息, 需要设置url参数 | - | | format(files: File[], responseText: string): string | 对服务端返回的数据进行转换,以满足内置的数据结构 | - | | file(files: File[]): File[] | 将上传的文件处理后再返回 | - | | setHeaders(): { [key: string]: string } | 上传前使用返回值设置头 | - |