除了热门的使用jq插件 jquery.validation
- jquery.validation //表单验证插件,官网:https://jqueryvalidation.org/
![7236116-6805a240a261ed08.png](https://upload-images.jianshu.io/upload_images/7236116-6805a240a261ed08.png)
image.png
还可以使用SMVlidator
https://wldragon.github.io/SMValidator/tutor/tutor1.html
https://wldragon.github.io/SMValidator/tutor/tutor2.html
![7236116-2094757a1aee4aa4.png](https://upload-images.jianshu.io/upload_images/7236116-2094757a1aee4aa4.png)
image.png
转载于:https://www.jianshu.com/p/a95b8b6f00e4