limjh
2018-07-23 17:43
<!DOCTYPE HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>流程控制语句</title>
<script type="text/javascript">
var infos=[['小a','girl','21','1'],['小b','boy','23','3'],['小c','boy','24','4'],['小d','girl','21','1'],['小e','girl','22','4'],['小f','boy','21','1'],['小g','giil','22','2'],['小h','girl','20','3'],['小i','girl','20','1'],['小j','boy','20','3']];
for(var i=0;i<infos.length;i++)
{for(var j=0;j<infos[i].length,j++)
{if(infos[i][3]=='1'&&infos[i][1]=='girl')
{document.write(infos[i][0]+"是大一且是女生")}}}
</script>
</head>
<body>
</body>
</html>
请问怎么解决的啊
解决了
JavaScript进阶篇
468190 学习 · 21891 问题
相似问题