jquery获取json对象中的key小技巧

console.log(JSON.parse(json.RptParams, function (k, v) {
if(k == 'birthday'){ // 返回日期对象
return new Date(v);
}else if(k == 'sex'){ // sex不在了
return undefined;
}else{
alert(v)
}
}));

原文地址:https://www.cnblogs.com/deepalley/p/10263733.html