diff --git a/pages/help/okUtils.html b/pages/help/okUtils.html index 083f665..f96725b 100644 --- a/pages/help/okUtils.html +++ b/pages/help/okUtils.html @@ -14,11 +14,11 @@
-- +主要讲述如何okUtils封装的工具类使用方法。
+异步请求封装
- okUtils.ajax(url, type, params, load); + okUtils.ajax(url, type, params, load)
okUtils.ajax("/permission/tree", "get", null, true).done(function (response) {
@@ -63,6 +63,72 @@ okUtils.ajax("/permission/tree", "get", null, true).done(function (response) {
+
+
+
+ 获取body宽度
+
+
+ okUtils.getBodyWidth()
+
+
+console.log(okUtils.getBodyWidth());
+
+
+
+
+ 批量操作前的校验
+
+
+ okUtils.table.batchCheck(table)
+
+
+待补充...
+
+
+
+
+ 获取body宽度
+
+
+ okUtils.table.successMsg(content)
+
+
+待补充...
+
+
+
+
+ 格式化当前日期
+
+
+ okUtils.table.dateFormat(date, fmt)
+
+
+待补充...
+
+
+
+
+ 判断是否为一个正常的数字
+
+
+ okUtils.table.isNumber(num)
+
+
+待补充...
+
+
+
+
+ 判断一个数字是否包括在某个范围
+
+
+ okUtils.table.isNumberWith(num, begin, end)
+
+
+待补充...
+