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>

浙公网安备 33010602011771号