validator.js
validator.js copied to clipboard
:interrobang: Lightweight JavaScript form validation, that had minimal configuration and felt natural to use. No dependencies, support UMD.
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.[View this repository on the Mend.io Web Portal](https://developer.mend.io/github/jaywcjlove/validator.js). ## Config Migration Needed - [ ]...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [rollup](https://rollupjs.org/) ([source](https://togithub.com/rollup/rollup)) | [`~2.73.0` -> `~2.77.0`](https://renovatebot.com/diffs/npm/rollup/2.73.0/2.77.0) |...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jest-watch-typeahead](https://togithub.com/jest-community/jest-watch-typeahead) | [`~1.1.0` -> `~2.0.0`](https://renovatebot.com/diffs/npm/jest-watch-typeahead/1.1.0/2.0.0) | [](https://docs.renovatebot.com/merge-confidence/)...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [lerna](https://lerna.js.org) ([source](https://togithub.com/lerna/lerna)) | [`~4.0.0` -> `~5.1.0`](https://renovatebot.com/diffs/npm/lerna/4.0.0/5.1.8) |...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@babel/runtime](https://babel.dev/docs/en/next/babel-runtime) ([source](https://togithub.com/babel/babel)) | [`7.16.3` -> `7.18.6`](https://renovatebot.com/diffs/npm/@babel%2fruntime/7.16.3/7.18.6) |...
callback函数中,没有validator的错误,函数会执行,但会把页面刷新。例如下面的代码,无法显示弹窗(modal1和modal2都不行),并且会把表单的内容重置,类似于页面刷新,请问如何解决这个问题,组织刷新? `var validator = new Validator('form1',[ { name:"temperature", display:"请输入正确的体温值", rules: 'is_money' },{ name:"BMI", display:"请输入正确的BML值", rules: 'is_money' } ],function(obj,evt){ var errors_elm = document.getElementById('error_msg'); errors_elm.style.display = 'none'; console.log(evt); console.log(obj); if(obj.errors.length>0){ // 判断是否错误...
大家用的可靠吗?
form表单id是一样的 但是就是找不到 
... 那啥 顺手贴一个: 