📅  最后修改于: 2022-03-11 15:01:30.600000             🧑  作者: Mango
function validate_cvv(cvv){
var myRe = /^[0-9]{3,4}$/;
var myArray = myRe.exec(cvv);
if(cvv!=myArray)
{
alert("Invalid cvv number"); //invalid cvv number
return false;
}else{
return true; //valid cvv number
}
}