首页 框架使用 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.table.xxx()
// 做批量操作时,table行数据检查
okUtils.table.batchCheck(table)
// table页面操作执行成功后的提示
okUtils.table.successMsg()
okUtils.isNum()
// 判断是否为一个正常的数字
okUtils.isNum()
// 判断一个数字是否包括在某个范围
okUtils.isNum(num, begin, end)
okUtils.date.xxx()
// 格式化日期时间
okUtils.dateFormat(date, fmt)