<!doctype html>
<html>
<head>
<script type="text/javascript" src="jquery-1.3.1.js"></script>
</head>
<body>
<script>
/*var arr1=[1,"aa",2];
$.each(arr1,function(i,n){
alert(i+""+n);
})*/
var arr=[{"name":"小亮"},{"name":"久攀"},{"name":"小刚"}];
$.each(arr,function(i,n){
alert(i+" "+n.name);
});
</script>
</body>
</html>
网友评论