// 遍历数组
var arr2= [5,6,8,10];
$.each(arr2,function(index,value){
console.log("下标:"+index+"值:"+value);
});
// 遍历对象
var json ={ name:"王",age:"20",sex:"女"};
$.each(json,function(index,value){
console.log("名称:"+index+"内容:"+value);
})// index是下标,value是数组内容
// 遍历元素
$('.ClassName>li').each(function(i,v){
}// 遍历数组
var arr2= [5,6,8,10];
$.each(ar