js遍历对象:
var obj = {a:1,b:2,c:3} for(var s in obj){ alert(obj[s]); }
jquery遍历对象:
var obj = {a:1,b:2,c:3} $.each(obj ,function(k,v){ console.log(k); console.log(v); })