var json= { "Type": "Coding", "Height":100 };
for (var key in json)
{
alert(key); alert(json[key]);
}
$.each(json, function(i) {
alert(json[i]);
alert(i);
});
转:http://www.cnblogs.com/ytjjyy/archive/2012/04/17/2453340.html
var json= { "Type": "Coding", "Height":100 };
for (var key in json)
{
alert(key); alert(json[key]);
}
$.each(json, function(i) {
alert(json[i]);
alert(i);
});
转:http://www.cnblogs.com/ytjjyy/archive/2012/04/17/2453340.html