diff --git a/index.html b/index.html index 806140d..d0f8c05 100644 --- a/index.html +++ b/index.html @@ -136,6 +136,8 @@
Tab使用
+
okLayer使用
+
okUtils使用
diff --git a/use-okLayer.html b/use-okLayer.html new file mode 100644 index 0000000..7d4060f --- /dev/null +++ b/use-okLayer.html @@ -0,0 +1,77 @@ + + + + + okLayer使用 + + + +
+ +
+ + 首页 + 框架使用 + okLayer使用 + + + + +
+
+ +
+ 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)
+	
+
+ + + + + + diff --git a/use-okUtils.html b/use-okUtils.html new file mode 100644 index 0000000..2eb276e --- /dev/null +++ b/use-okUtils.html @@ -0,0 +1,58 @@ + + + + + okUtils使用 + + + +
+ +
+ + 首页 + 框架使用 + okUtils使用 + + + + +
+
+ +
+ 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
+    
+
+ + + + + + diff --git a/use-tab.html b/use-tab.html index 57afd12..5d14cef 100644 --- a/use-tab.html +++ b/use-tab.html @@ -52,7 +52,7 @@
使用方法3:用按钮点击打开
-
+    
 /**
  * 添加tab
  * @param title 标题