客户端信用卡验证 [英] Client-side validation of credit cards
本文介绍了客户端信用卡验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在用户点击提交之前,有没有人有一个库或JavaScript代码段来验证信用卡的校验位?
Does anyone have a library or JavaScript snippet to validate the check digit of credit cards before the user hits Submit?
推荐答案
jQuery Validation Plugin 有一个方法,用于验证信用卡号。
The jQuery Validation Plugin has a method for validating credit card numbers.
还有其他特定脚本:
- JavaScript Credit Card Validation Function
- Credit Card Validation
大多数人使用 Luhn算法。
这篇关于客户端信用卡验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文