$("#match_"+matchid+"_zhudui").append(data[0].score[2][0]); $("#match_"+matchid+"_kedui").append(data[0].score[3][0]); }else if(data[0].type_id == 2 && typeof(data[0].score) != "undefined"){ $("#match_"+matchid+"_zhudui").append(data[0].score[3][0]+data[0].score[3][1]+data[0].score[3][2]+data[0].score[3][3]+data[0].score[3][4]); $("#match_"+matchid+"_kedui").append(data[0].score[4][0]+data[0].score[4][1]+data[0].score[4][2]+data[0].score[4][3]+data[0].score[4][4]); }else{ $("#match_"+matchid+"_zhudui").append(0); $("#match_"+matchid+"_kedui").append(0); } } }); } get_match_source(2,3805687);