???????????????????Web?????????
???????????? ???????[ 2015/5/19 10:45:40 ] ????????WEB????
??????????????
???????????????——Web?????ж??????????????????????http://www.cnblogs.com/iProg/p/4356599.html???????????е?????????????????????????????????????е?????ж????е??????????????Ч?????ж??????????????????????????????????ж?????????????????????????????????????????????
????????????
??????????????
???????????
????????????
?????????html+JavaScript????±??з???????
????1<html>
????2
????3<head>
????4<scripttype="text/javascript">
????5functionequalTest(){
????6varname1=document.getElementById('name1').value;
????7varname2=document.getElementById('name2').value;
????8varname3=document.getElementById('name3').value;
????9if(name1==null||name2==null||name3==null)
????10{
????11window.alert("????????????");
????12}
????13else
????14{
????15varnLen1=name1.length;
????16varnLen2=name2.length;
????17varnLen3=name3.length;
????18reg=/^[a-zA-Z0-9_]+$/;
????19
????20if(nLen1<1||nLen1>6||nLen2<1||nLen2>6||nLen3<1||nLen3>6)
????21{
????22window.alert("???")
????23}
????24elseif(!reg.test(name1)||!reg.test(name2)||!reg.test(name3))
????25{
????26window.alert("???");
????27}
????28else
????29{
????30window.alert("???");
????31}
????32}
????33}
????34</script>
????35</head>
????36
????37<body>
????38<inputtype="text"id="name1"/><br/>
????39<inputtype="text"id="name2"/><br/>
????40<inputtype="text"id="name3"/><br/>
????41
????42<inputtype="button"onclick="equalTest()"value="???"/>
????43</body>
????44
????45</html>
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11