js:知道json数据里的一个值,从而获取其他的值
var wtfl1economicsLengthData=data.questionOne //json数据
$(wtfl1economicsLengthData).each(function () {
if(this.pid==20){//已知值进行判断
var key = this.key;
cosole.log(key);
}
});
var wtfl1economicsLengthData=data.questionOne //json数据
$(wtfl1economicsLengthData).each(function () {
if(this.pid==20){//已知值进行判断
var key = this.key;
cosole.log(key);
}
});