jquery 银行卡号验证

具体参考:https://github.com/jondavidjohn/payform

插件js: jquery.payform.js

具体操作

alert($.payform.validateCardNumber('4242424242424242'));//true
alert($.payform.parseCardType('4242424242424242'));//visa / Visa
alert($.payform.parseCardType('6042708104454470'));//discover / Discover
alert($.payform.parseCardType('5265541846020487'));//mastercard / Master
alert($.payform.parseCardType('3412121212121212'));//amex / Express
上一篇:R学习:《机器学习与数据科学基于R的统计学习方法》中文PDF+代码


下一篇:t default] Failed to discover available identity versions when contacting http://ahswj-cloud-controller:35357. Attempting to parse version from URL.: ConnectFailure