我有一个像这样的对象:
{"result":
[
{"id_":"18","name":"papas","species":"Other","sex":"F"},
{"id_":"26","name":"as","species":"bird","sex":"M"}
]}
如何访问每个项目,并将其打印在 div 中?
我在尝试:
$.each( myObj , function(index,item){
$("#wrapper_busqueda").append('<div><b>' + myObj.id_ + '</b> '+ myObj.mame + ' </div><hr />');
}
但得到未定义...