this运算符

来源:互联网 发布:温十如何解除网络禁用 编辑:程序博客网 时间:2024/06/05 02:25
<!DOCTYPE html><html lang="en"><head>    <meta http-equiv="content-type" content="text/html;charset=UTF-8">    <title>this运算符</title>    <script type="text/javascript">        <!--         function verifyDate(myObject,heightValue,lowValue) {             if(myObject.value>heightValue||myObject.value<lowValue)             {                 alert("输入的数字不合法,请重新输入!");             }         }        -->    </script></head><body>请输入1-10之间的数字:<input type="text" name="myText1" onchange="verifyDate(this,10,1)"><br/>请输入11-20之间的数字:<input type="text" name="myText1" onchange="verifyDate(this,20,11)"><br/></body></html>
0 0
原创粉丝点击