javascript遍历数组

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
    <script type="text/javascript">
        var arr = [1,2,3,5,4];
        arr.map(function(val){
            alert(val)
        })
 
    </script>
</body>
</html>

  

javascript遍历数组

上一篇:node.js 1Million concurrent connections!


下一篇:.Net下反射用法