应接受 和 [0-9] 和 [-] 字符,并且应为最大和最小 12 个字符和 123-456-7890 格式
<input type="number" onchange="regex.test(^[0-9-]*$)">
错误:表达式正常
慕工程0101907
忽然笑
相关分类