首页 > Web开发 > 详细

javascript遍历数组

时间:2014-02-07 16:27:50      阅读:305      评论:0      收藏:0      [点我收藏+]
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遍历数组

原文:http://www.cnblogs.com/teamobaby/p/3539410.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!