diff --git a/pages/use/use-okLayer.html b/pages/use/use-okLayer.html index c40ef19..d54a0f2 100644 --- a/pages/use/use-okLayer.html +++ b/pages/use/use-okLayer.html @@ -23,37 +23,41 @@
okLayer.tableCheck()-
-// 对表格进行批量操作时的预检查 + ++// 对表格进行批量操作时的预检查 okLayer.tableCheck(table) -+
okLayer.tableOperationMsg()-
-// 对表格操作后的提示信息
+
+
+// 对表格操作后的提示信息
okLayer.tableOperationMsg("批量启用成功");
okLayer.tableOperationMsg("批量停用成功");
-
+
okLayer.confirm()-
+
+
okLayer.confirm("确定要批量删除吗?", function (index) {
- layer.close(index);
- // 代码逻辑
+ layer.close(index);
+ // 代码逻辑
});
-
-
+
+
okLayer.open()-
+
+
/**
* 弹窗打开窗口页面
* @param title 标题
@@ -61,9 +65,9 @@ okLayer.confirm("确定要批量删除吗?", function (index) {
* @param width 弹窗宽度
* @param height 弹窗高度
* @param function 回调函数
- */
+ */
okLayer.open("添加用户", "user-add.html", "90%", "90%", function() {})
-
+
diff --git a/pages/use/use-okTab.html b/pages/use/use-okTab.html
index a46e63c..82f8e18 100644
--- a/pages/use/use-okTab.html
+++ b/pages/use/use-okTab.html
@@ -23,7 +23,8 @@
使用方法1:在index.html左侧中添加-
+ +
使用方法2:在index.html顶部中添加-
+ +
使用方法3:用按钮点击打开-
+
+
/**
* 添加tab
* @param title 标题
@@ -60,7 +63,8 @@
* @param tabId tabId必须唯一
*/
okTab.tabAdd("ok-tool", "http://www.xlbweb.cn", "11-1")
-
+
+
diff --git a/pages/use/use-okUtils.html b/pages/use/use-okUtils.html
index ef0aef2..e49a73b 100644
--- a/pages/use/use-okUtils.html
+++ b/pages/use/use-okUtils.html
@@ -23,28 +23,30 @@
okUtils.ajax()-
+
+
/**
* 弹窗打开窗口页面
* @param url 请求url
* @param type 请求类型
* @param param 请求参数
- */
+ */
okUtils.ajax("/user/batchDel", "post", {idsStr: idsStr}).done(function (response) {
- console.log(response)
- okLayer.tableOperationMsg("批量删除成功");
+ console.log(response)
+ okLayer.tableOperationMsg("批量删除成功");
}).fail(function (error) {
- console.log(error)
+ console.log(error)
});
-
+
okUtils.xxx()-
+ +xxx -+