If I am given the following data by a web-service:
{
"d": [
{
"col1": "col 1 data 1",
"col2": "col 2 data 1"
},
{
"col1": "col 1 data 2",
"col2": "col 1 data 2"
}
]
}
how do I access the second col1?
As the following:
success: function( data ) {
alert( data.d ) ;
},
gives me:
[object Object],[object Object]
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…