allow for

首先需要引入 jQuery 和 Bootstrap 库,然后在Js代码中加入下面一行代码。 $('#form').validation(); $('#form') 为jQuery选中你需要验证的 dom 元素,最后只需要在html代码中指定相关的属性即可。 邮箱 密码 登录 其中 check-type 为需要验证的规则,可以绑定多个规则,之间用空格隔开。 其中 required-message 为验证为通过显示的信息,在这里 required-message 的'-'之前为前面定义的验证规则名称。...

加载中
加载中

{{o.href}}

{{o.content | formatHtml}}

{{o.author.name}}
{{o.pubDate | formatDate}}
{{parseInt(o.viewCount) | bigNumberTransform}}

暂无相关内容

返回顶部
顶部