jQuery
可以直接使用Map
var assayMethadArry = new Map;
var comboDatasMap = new Map;
for (var w = 0; w < jsonData.length; w++) {
var sampleData = jsonData[w];
assayMethadArry.set(sampleData['id'], sampleData['assayMethodList']);
comboDatasMap.set(sampleData['id'], sampleData['comboDatas']);
}
var assayItemID = td.find("a").attr("data-assayItemID");
var comboDatas = comboDatasMap.get(assayItemID);