BootstrapValidator(1)
BootstrapValidator comes with various built-in validators listed in the alphabetical order as following:
bootstrapvalidator配备各种内置验证器,以字母顺序排列如下
No. | Name | Available from | Description |
---|---|---|---|
1 | base64 | 0.3.2 | Validate a base64 encoded string——验证一个Base64编码的字符串 |
2 | between | 0.1.0 | Check if the input value is between (strictly or not) two given numbers——检查输入值是否在(严格)2个给定的数字之间 |
3 | callback | 0.2.0 | Return the validity from a callback method——返回一个回调方法的有效性 |
4 | choice | 0.3.0 | Check if the number of checked boxes are less or more than a given number——检查复选框的数目是否小于给定数 |
5 | creditCard | 0.2.0 | Validate a credit card number——验证信用卡号码 |
6 | cusip | 0.4.5 | Validate a CUSIP |
7 | cvv | 0.3.2 | Validate a CVV number |
8 | date | 0.3.1 | Validate date——验证日期 |
9 | different | 0.2.0 | Return true if the input value is different with given field's value——如果输入值与给定字段值不同,则返回ture |
10 | digits | 0.1.0 | Return true if the value contains only digits——返回true,如果value只包含数字 |
11 | ean | 0.4.4 | Validate an EAN (International Article Number)——验证一个EAN(国际物品编码) |
12 | emailAddress | 0.1.0 | Validate an email address——验证电子邮件地址 |
13 | file | 0.4.3 | Validate file——验证文件 |
14 | greaterThan | 0.1.0 | Return true if the value is greater than or equals to given number——如果值大于或等于给定数,则返回ture |
15 | grid | 0.4.4 | Validate a GRId (Global Release Identifier)——验证一个网格(全局释放标识符) |
16 | hex | 0.4.0 | Validate a hexadecimal number——验证十六进制数 |
17 | hexColor | 0.1.0 | Validate a hex color——验证一个十六进制颜色 |
18 | iban | 0.4.0 | Validate an International Bank Account Number (IBAN)——验证一个国际银行账号(IBAN) |
19 | id | 0.4.5 | Validate identification number. Support 25 countries——识别号码验证。支持25个国家 |
20 | identical | 0.1.0 | Check if the value is the same as one of particular field——检查该值是否与特定字段相同 |
21 | imei | 0.4.4 | Validate an IMEI (International Mobile Station Equipment Identity)——验证一个IMEI(国际移动设备识别码) |
22 | integer | 0.4.0 | Validate an integer number——验证一个整数 |
23 | ip | 0.3.2 | Validate an IP address. Support both IPv4 and IPv6——验证的IP地址。支持IPv4和IPv6。 |
24 | isbn | 0.3.2 | Validate an ISBN (International Standard Book Number). Support both ISBN 10 and ISBN 13——验证ISBN(国际标准书号)。支持ISBN书号10和13 |
25 | isin | 0.4.5 | Validate an ISIN (International Securities Identification Number)——验证ISIN(国际证券识别号码) |
26 | ismn | 0.4.4 | Validate an ISMN (International Standard Music Number)——验证ISMN(国际标准的音乐号码) |
27 | issn | 0.4.4 | Validate an ISSN (International Standard Serial Number)——验证一个ISSN(国际标准刊号) |
28 | lessThan | 0.1.0 | Return true if the value is less than or equals to given number——如果值小于或等于给定数,则返回ture |
29 | mac | 0.3.2 | Validate a MAC address——验证MAC地址 |
30 | notEmpty | 0.1.0 | Check if the value is empty——检查该值是否为空 |
31 | numeric | 0.4.0 | Check if the value is numeric——检查该值是否为数字 |
32 | phone | 0.3.2 | Validate a phone number——验证电话号码 |
33 | regexp | 0.1.0 | Check if the value matches given Javascript regular expression——检查是否符合JavaScript正则表达式的值 |
34 | remote | 0.1.0 | Perform remote checking via Ajax request——通过Ajax请求执行远程检查 |
35 | rtn | 0.4.5 | Validate a RTN (Routing transit number)——验证一个RTN(路由交通号) |
36 | sedol | 0.4.5 | Validate a SEDOL (Stock Exchange Daily Official List)——验证一个牌价股票(证券交易所每日官方名单) |
37 | siren | 0.4.2 | Validate a Siren number——验证警报器号 |
38 | siret | 0.4.2 | Validate a Siret number——验证Siret号码 |
39 | step | 0.3.2 | Check if the value is valid step one——检查该值是否是有效的步骤之一 |
40 | stringCase | 0.4.0 | Check if a string is a lower or upper case one——检查一个字符串是否为小写或大写的字符串 |
41 | stringLength | 0.1.0 | Validate the length of a string——验证字符串的长度 |
42 | uri | 0.1.0 | Validate an URL address——验证一个URL地址 |
43 | uuid | 0.4.0 | Validate an UUID, support v3, v4, v5——验证一个UUID,支持V3,V4,V5 |
44 | vat | 0.4.3 | Validate VAT number. Support 32 countries——验证增值税。支持32个国家 |
45 | vin | 0.4.2 | Validate an US VIN (Vehicle Identification Number)——验证 US VIN(车辆识别号码) |
46 | zipCode | 0.1.0 | Validate a zip code——验证邮政编码 |