为什么我得到的结果是一个A两个逗号。。。。。
<script type="text/javascript">
var name=['A','B','C','D','E','F','G','H','I','J'];
var sex=["女","男","男","女","女","男","女","女","女","男"];var age=[21,23,24,21,22,21,22,20,20,20];
var aclass=["大一","大三","大四","大一","大四","大一","大四","大一","大二","大三","大一","大三"];
var person=[name,sex,age,aclass];
//第一步把之前的数据写成一个数组的形式,定义变量为 infos
for(var i=0;i<10;i++){
var infos=person[3][i];
if(infos=="大一"){
var infoa=person[1][i];
if(infoa=="女"){
document.write(person[0][i]+"<br />");
}
}
}