<inputtype="text"onblur="checkint(this)"/><br><scripttype="text/javascript"><br>functioncheckint(obj){<br>varval=obj.value;<br>varpreg=/^\d{6,10}$/;<br>if(preg.test(val)){<br>alert("驗證通過")<br>}else{<br>alert('驗證失敗');<br>}<br>}<br></script>
@content
頂0
加入收藏
相關問答推薦