const _isCard = number => { if (number.length != 18) { return false } // 数字17位,最后一位可数字可大写字母 const reg = /^\d{17}([A-Z0-9])$/ return reg.test(number) }