Front end validation collection

Hangzhou suxiaoxiao 2020-11-12 13:44:22
end validation collection



Front end assembly


yarn add s-verify --save
# OR
npm install s-verify --save



import { sIDCard } from "s-verify";




Method name Call name explain Parameters
Enterprise unified social credit code isEnterpriseCreditCode verification “ Enterprise unified social credit code ” Validation value (String)
ID number isIDCard Strictly verify the ID number & Return identity information Validation value (String), Whether the validation (Boolean)
mailbox isEmail Strict email Validation value (String)
Phone number isTel Verify phone number Validation value (String,Number)
cell-phone number isPhone Verify phone number Validation value (String,Number)
Strict password isStrictPassword The password begins with a letter , The length is in 6~18 Between , Can only contain letters 、 Numbers and underscores Validation value (String)
Postal Code isPostal Verify zip code Validation value (String)
Date time isDate Verification date time Validation value (String)
english isEnglish Verify English Validation value (String)
chinese isChinese Verify Chinese Validation value (String)
A lowercase letter isLower Verify lowercase Validation value (String)
Capitalization isUpper Verify capitalization Validation value (String)
website isUrl Verify web address Validation value (String)
character string isString Validation string Validation value (*)
Numbers isNumber Validation number Validation value (*)
Boolean isBoolean Verify Boolean Validation value (*)
function isFunction Validation function Validation value (*)
null isNull verification null Validation value (*)
undefined isUndefined verification undefined Validation value (*)
object isObject verification Object Validation value (*)
array isArray verification Array Validation value (*)
Symbol function isSymbol verification Symbol function Validation value (*)
Promise object isPromise verification Promise object Validation value (*)
Set object isSet verification Set object Validation value (*)
Wechat browser isWeiXin Verify whether it is a wechat browser -
Mobile isDeviceMobile Verify if it is a mobile terminal -
QQ browser isQQBrowser Verify that it is QQ browser -
Reptiles isSpider Verify if it's a crawler -
Ios isIos Verify that it is Ios System -
Pc isPC Verify that it is Pc End -
本文为[Hangzhou suxiaoxiao]所创,转载请带上原文链接,感谢

  1. css单位
  2. CSS unit
  3. 前端验证集合
  4. Front end learning (4) -- response line, response head, response body
  5. Lesson 27: using time measuring tools to explore available spare time
  6. CSS 单位
  7. CSS unit
  8. 前端工具集合
  9. Front end Tools Collection
  10. Introduction to HTTP message format
  11. Introduction to new features of HTML5
  12. Common instructions for Vue
  13. Introduction of bootstrap Blazer component library
  14. HTML5 速览
  15. HTML5 quick view
  16. HTML表格自动排序
  17. For less than $1700, create a private cloud with openstack
  18. Basic learning of JavaScript (1)
  19. 前端编程之路一一HTML标签分类
  20. Front end Programming: HTML tag classification
  21. ColSpan and rowspan merging cells of HTML form elements
  22. JavaScript 日期时间格式化
  23. JavaScript date time formatting
  24. Classification of front end interview questions - html2
  25. CSS block elements
  26. HTML5 form detailed tutorial
  27. HTML5 form detailed tutorial
  28. HTML5新增的元素表
  29. New element table in HTML5
  30. 3D轮播插件vue-carousel-3d非官方最全文档
  31. 3D carousel plug-in vue-carousel-3d
  32. Uniapp (Vue general) integrates Tencent location service SDK -- multi platform small program general
  33. Slowhttptest slow attack tool use details
  34. HTML summary (2)
  35. Overview of CSS3
  36. Front end abnormal monitoring system
  37. 免费网站部署和免费数据库Serverless云存储资源汇总整理
  38. Free website deployment and collection of free database serverless cloud storage resources
  39. Vux form -- a form solution of base vux
  40. 可以直接用于HTML中的特殊字符表 unicode字符集
  41. Can be directly used in HTML special character table Unicode character set
  42. Detailed explanation of HTTP protocol
  43. HTTP request header and request response header
  44. CSS background深度解析
  45. Python web/HTML GUI
  46. Front end standard 2: HTML you know and don't know
  47. Some HTML tags
  48. HTML标签之table
  49. Table of HTML tag
  50. DataTables of jQuery plug-in
  51. Unity calls Google's free translation API (HTTPS interface). Young people don't speak martial arts. How can they speak in multiple languages
  52. Linux entry most commonly used commands, do not learn a bunch of useless commands
  53. Piziheng embedded: a list of common short-range wireless communication protocols (Wi Fi / Bluetooth / ZigBee / thread...)
  54. Naming rules for the front end team of ladder
  55. HTML logo related symbols
  56. Node . JS: development resources and technology stack arrangement
  57. Unity calls Google's free translation API (HTTPS interface). Young people don't speak martial arts. How can they speak in multiple languages
  58. Straighten out JavaScript (18) - statements and operators
  59. Employment information statistics network (interface document)
  60. css selector