1
我有这样的对象:jQuery对象
question = {
"name":"Foo",
"number":"123",
"options":{"1":"1 - 20","2":"21 - 30","etc":"etc"}
}
现在如果我做的:
$(question.options).each(function(k,v){
console.log(k,v)
// This should spit out: 1,a; 2,b; etc,etc ....
});
但它吐出来选择作为一个对象:0对象{1 =“1 - 20“,2 =”21 - 30“,更多...}
哦确定!谢谢你!现在我可以继续! :-) – Harry 2011-05-18 13:26:11