jsp 页面无法识别我array aa[]
的行中document.dd.aa[i].value
....具体来说 dd 是我的表单名称....
<script type="text/javascript">
function chk()
{
var errmsg = new String("");
var aa = new Array("t1","t2");
for(var i=0;i<=1;i++)
{
var ddd = document.dd.aa[i].value;
if(ddd=="")
{
errmsg += "Empty field:" +"\n";
}
}
alert(errmsg);
}
</script>
提前谢谢:DD...