function displayData(stdDetails) {
for (var t in stdDetails) //printing keys along with values
{
console.log("in loop");
console.log(t, ":", stdDetails[t]);
if (typeof(stdDetails[t]) == 'object') {
displayData(stdDetails[t]);
}
}
}
displayData();
答案 0 :(得分:1)
displayData()需要stdDetails参数,而您没有提供该参数。