Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasTao authored and Vanessa219 committed Apr 27, 2021
1 parent 6ad1713 commit b7778a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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 } | 上传前使用返回值设置头 | - |
Expand Down

0 comments on commit b7778a1

Please sign in to comment.