请教:关于数组问题?一直想不通!
怎样可以实现在面的功能呢?前提一定要用到数组mm(3)
<%
dim mm(3)
mm(1)=10
mm(2)=20
%>
<html>
<head>
<script language="JavaScript">
function ck(id)
{
if (id.tx.value>mm(1)) {
alert("你输入的数量大于实际库存数!!");
id.tx.value="";
id.tx.focus();
}
}
</script>
<title>
aaa
</title>
</head>
<body>
<form action="" method="post" name="form1">
<input name="tx" type="text" onChange="ck(form1)">
</form>
</body>
</html>