diff --git a/index.html b/index.html index 806140d..d0f8c05 100644 --- a/index.html +++ b/index.html @@ -136,6 +136,8 @@
+ okLayer.tableCheck() ++
+// 对表格进行批量操作时的预检查 +okLayer.tableCheck(table) ++ + +
+ okLayer.tableOperationMsg() ++
+// 对表格操作后的提示信息
+okLayer.tableOperationMsg("批量启用成功");
+okLayer.tableOperationMsg("批量停用成功");
+
+
+
+ + okLayer.confirm() ++
+okLayer.confirm("确定要批量删除吗?", function (index) {
+ layer.close(index);
+ // 代码逻辑
+});
+
+
+
+ + okLayer.open() ++
+/**
+ * 弹窗打开窗口页面
+ * @param title 标题
+ * @param content 内容url
+ * @param width 弹窗宽度
+ * @param height 弹窗高度
+ * @param isRefreshTable 是否刷新表格
+ */
+okLayer.open("添加用户", "user-add.html", "90%", "90%", true)
+
++ okUtils.ajax() ++
+/**
+ * 弹窗打开窗口页面
+ * @param url 请求url
+ * @param type 请求类型
+ * @param param 请求参数
+ */
+okUtils.ajax("/user/batchDel", "post", {idsStr: idsStr}).done(function (response) {
+ console.log(response)
+ okLayer.tableOperationMsg("批量删除成功");
+}).fail(function (error) {
+ console.log(error)
+});
+
+
+
+ + okUtils.xxx() ++
+xxx ++
使用方法3:用按钮点击打开-
+/** * 添加tab * @param title 标题