标签:校验 lse input bsp else cti inpu 错误 int
<input id="a" type="text" onblur="test123();" />
function test123()
{
var regx = /^[\u4E00-\u9FA5A-Za-z0-9]+$/
var value = document.getElementById("a").value
if(regx.test(value))
{
alert(value)
} else {
alert("格式错误");
}
}
标签:校验 lse input bsp else cti inpu 错误 int
原文地址:https://www.cnblogs.com/sjzxs/p/9583444.html