// 1 循环序列 var arr=[12,34,5667]; $.each(arr,function (i,j) { console.log(i,j) }); var obj={"name":"alex","age":123} $.each(obj,function (i,j) { console.log(i,j) }); // 2 循环标签 $("ul li").each(function (i,j) { console.log(i,j); console.log($(this).html()) })