docs: 补充文档

This commit is contained in:
贤心
2024-08-16 22:07:52 +08:00
parent b4fe5f7101
commit 225b399469
2 changed files with 5 additions and 2 deletions

View File

@@ -516,13 +516,15 @@ allDone: function(obj){
- `index` 当前文件的索引
- `upload` 重新上传的方法
- `res` 返回值(纯文本)<sup>2.9.12+</sup>
- `xhr`: jQuery XHR 对象 <sup>2.9.15+</sup>
```
error: function(index, upload, res){
error: function(index, upload, res, xhr){
console.log(index); // 当前文件的索引
// upload(); 重新上传的方法
console.log(res); // 返回值(纯文本)
console.log(JSON.parse(res)); // 返回值json
console.log(xhr);
}
```