支持指定验证15位或18位类型的ID。用于实时输入验证的场景。
//强制要求18位ID
Validator.isValid( id,18 );
Validator.getInfo( id,18 );
Unclaimed project
Are you a maintainer of IDValidator? Claim this project to take control of your public changelog and roadmap.
Changelog
中国大陆个人身份证号验证 Chinese Mainland Personal ID Card Validation
Last updated over 8 years ago
支持指定验证15位或18位类型的ID。用于实时输入验证的场景。
//强制要求18位ID
Validator.isValid( id,18 );
Validator.getInfo( id,18 );
增加CMD/Seajs支持与cache
1. 增加CMD/Seajs支持。
2. 增加cache缓存记录,避免重复运算。
支持CommonJS 与 AMD.