使用 each
var anObject = {one:1,two:2,three:3}; $.each(anObject,function(name,value) { alert(name); alert(value); });