它的大体结构是这个样子:
function travelJson(jsonObj) {
if (jsonObj == null) {
return;
}
for ( var item in jsonObj) {
if (typeof (jsonObj[item]) == "string") {
} else if (typeof (jsonObj[item]) == "object") {
} else if (typeof (jsonObj[item]) == "function") {
}
}
}// over
参考:忘记了