1. [代码] [JavaScript]代码 var jsonAry1 = {"x":"xxx","y":"yyy"};var jsonAry2 = {"x":{"xx":"xxx","yy":"yyy"}}$.each(jsonAry2,function(index,content){alert(index+":"+content.xx+":"+content["yy"]);})
1. [代码][JavaScript]代码
var jsonAry1 = {"x":"xxx","y":"yyy"}; var jsonAry2 = {"x":{"xx":"xxx","yy":"yyy"}} $.each(jsonAry2,function(index,content){ alert(index+":"+content.xx+":"+content["yy"]); })