let carNumReg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Za-z]{1}[A-Z0-9]{4}[A-Z0-9挂学警港澳]{1}$/
if (!carNumReg.test(this.inputData.carNumber)) {
this.inputData.carNumber = ''
this.$message({
type: 'error',
message: '请输入正确的车牌号'
})
return
}
},
网友评论