diff --git a/docs/tab/index.md b/docs/tab/index.md index d468706f..cf893eff 100644 --- a/docs/tab/index.md +++ b/docs/tab/index.md @@ -211,7 +211,8 @@ layui.use(function(){ - 参数 `filter` : tab 容器(`class="layui-tab"`)的 `lay-filter` 属性值 - 参数 `layid` : 选项卡标题元素的 `lay-id` 属性值 -- 参数 `force` : 是否强制执行 tab 切换。设置 `true` 后,将忽略 `tabBeforeChange` 事件行为。默认 `false` 2.9.15+ +- 参数 `force` 2.9.15+ +: 是否强制执行 tab 切换。设置 `true` 将忽略 `tabBeforeChange` 事件行为。默认 `false` 该方法用于切换到对应的 tab 选项。用法详见 : [#示例](#examples) diff --git a/docs/upload/detail/options.md b/docs/upload/detail/options.md index 5fdd9010..fdbb2428 100644 --- a/docs/upload/detail/options.md +++ b/docs/upload/detail/options.md @@ -516,13 +516,15 @@ allDone: function(obj){ - `index`: 当前文件的索引 - `upload`: 重新上传的方法 - `res`: 返回值(纯文本)2.9.12+ +- `xhr`: jQuery XHR 对象 2.9.15+ ``` -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); } ```