Jquery编历数组

<html>
<head>
  <title>编历</title>
   <script type="text/javascript">
       var arr=["ab","cd","ef","fg","ex"];
       $.each(arr,function(iNum,value){        
           document.write("序号:"+iNum+"值:"+value+"<br/>");   
       });
       var arrtwo={one:"1",two:"2",three:"3"};
       $.each(arrtwo,function(propetry,value){
           document.write("属性:"+propetry+"值:"+value+"<br>");
       });
       $.each(arr,function(){
         $(this)……    // $(this) 表示编历的子对像
       });
       
   </script>
</head>
<body>
</body>
</html>

 

posted @ 2013-07-25 21:30  酒沉吟  阅读(245)  评论(0编辑  收藏  举报