mirror of https://github.com/layui/layui
docs: 补充文档
parent
b4fe5f7101
commit
225b399469
|
@ -211,7 +211,8 @@ layui.use(function(){
|
||||||
|
|
||||||
- 参数 `filter` : tab 容器(`class="layui-tab"`)的 `lay-filter` 属性值
|
- 参数 `filter` : tab 容器(`class="layui-tab"`)的 `lay-filter` 属性值
|
||||||
- 参数 `layid` : 选项卡标题元素的 `lay-id` 属性值
|
- 参数 `layid` : 选项卡标题元素的 `lay-id` 属性值
|
||||||
- 参数 `force` : 是否强制执行 tab 切换。设置 `true` 后,将忽略 `tabBeforeChange` 事件行为。默认 `false` <sup>2.9.15+</sup>
|
- 参数 `force` <sup>2.9.15+</sup>
|
||||||
|
: 是否强制执行 tab 切换。设置 `true` 将忽略 `tabBeforeChange` 事件行为。默认 `false`
|
||||||
|
|
||||||
该方法用于切换到对应的 tab 选项。用法详见 : [#示例](#examples)
|
该方法用于切换到对应的 tab 选项。用法详见 : [#示例](#examples)
|
||||||
|
|
||||||
|
|
|
@ -516,13 +516,15 @@ allDone: function(obj){
|
||||||
- `index`: 当前文件的索引
|
- `index`: 当前文件的索引
|
||||||
- `upload`: 重新上传的方法
|
- `upload`: 重新上传的方法
|
||||||
- `res`: 返回值(纯文本)<sup>2.9.12+</sup>
|
- `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); // 当前文件的索引
|
console.log(index); // 当前文件的索引
|
||||||
// upload(); 重新上传的方法
|
// upload(); 重新上传的方法
|
||||||
console.log(res); // 返回值(纯文本)
|
console.log(res); // 返回值(纯文本)
|
||||||
console.log(JSON.parse(res)); // 返回值(json)
|
console.log(JSON.parse(res)); // 返回值(json)
|
||||||
|
console.log(xhr);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue