验证器类:Validate.php <?php namespace framework\library; class Validate { /** * 当前验证规则 * @var array */ protected $rule = []; /** * 验证提示信息 * @var array */ ...
分类:
Web程序 时间:
2021-01-28 11:58:59
阅读次数:
0
在 gin中,通过默认的函数,构建一个实现了带默认中间件的 *Engine。 r := gin.Default() 默认绑定了Logger和Recovery中间件,帮助我们进行日志输出和错误处理。 func Default() *Engine { debugPrintWARNINGDefault() ...
分类:
其他好文 时间:
2021-01-15 11:55:46
阅读次数:
0
序号校验类型取值描述 1 required true&false 必须填写的字段 2 email “@”&“email” 必须输入正确格式的电子邮件 3 remote url路径 使用ajax进行验证 4 date 数字 正确格式日期 tips:ie6有bug 5 dateISO 字符串 正确格式的 ...
分类:
其他好文 时间:
2021-01-14 10:34:03
阅读次数:
0
centos7运行yum报如下提示: There are no enabled repos. Run "yum repolist all" to see the repos you have. To enable Red Hat Subscription Management repositorie ...
分类:
其他好文 时间:
2021-01-12 10:29:30
阅读次数:
0
{ "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, "eslint.validate": [ "javascript" ] } ...
分类:
其他好文 时间:
2020-12-25 12:33:40
阅读次数:
0
https://blog.csdn.net/qq_34908844/article/details/78569483 https://segmentfault.com/q/1010000000374487 ...
分类:
微信 时间:
2020-12-16 12:39:45
阅读次数:
3
今天给一个项目添加eslint, 按照网上的教程,配置完就是不生效,半天没解决, 后来终于解决了, 在此总结,把一些坑分享出去。 1. vscode 扩展中安装eslint 2. eslint 扩展要是开启状态(开启关闭如果没生效,重启vscode即可) 3.修改eslint 的 setting(配 ...
分类:
其他好文 时间:
2020-11-17 12:37:23
阅读次数:
7
登陆按钮的方法 loginbtn () { // 预校验 this.$refs.loginRef.validate(async (valid) => { // console.log(valid) if (!valid) { return } // 数据解构 const { data: res } ...
分类:
其他好文 时间:
2020-11-12 13:23:07
阅读次数:
6
题目介绍 判断给定二叉树是否为一棵二叉搜索树。 Examples: 2 / \ 1 3 Input: [2,1,3] Output: true 5 / \ 1 4 / \ 3 6 Input: [5,1,4,null,null,3,6] Output: false Solution 仅仅使用递归判断 ...
分类:
其他好文 时间:
2020-10-26 11:18:28
阅读次数:
24
springboot+mybatis+easyui实现ERP仓库管理系统 ...
分类:
编程语言 时间:
2020-10-26 11:00:21
阅读次数:
31