奇了怪了,为啥我写就错呢
<!DOCTYPE HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>流程控制语句</title>
<script type="text/javascript">
var infos=[
['小A','女',21,'大一'],
['小B','男',23,'大三'],
];
for(var i=1;i<infos.length;i++){
if(infos[i][3]==="大一" && infos[i][1]==="女"){
document.write(infos[i][0]+"<br />");
}
}
</script>
</head>
<body>
</body>
</html>