javascript: parse JSON
$.get(“/intra/do/sequence_has_codonList.pl”,function(data){
data = JSON.parse(data); // array of objects
for(var i = 0, n = data.length; i<n; i++) {
for(var j = 0, codons = data[i].codons, m = codons.length; j<m; j++) {
if (codons[j] !== 0 ) {
var aa = codons[j].toUpperCase(), bb = data[i].abbr.toUpperCase(), cc = data[i].full;
codonIMap[aa] = bb;
codonFMap[aa] = cc;
// cannot be indexed, I don't know why.
}
}
}
});
天和地是灰色的,砖和瓦也是灰色的。临街的墙几经风化,几经修补,刷过黑灰、白灰,涂过红漆,书写过不同内容的标语,又终于被覆盖;风雨再把覆盖层胡乱地揭下来,形成一片斑驳的杂色,融汇于灰色的笼罩之中。路旁的树木苍黑,瓦楞中芳草青青。
远处,炊烟缭绕。迷蒙的曙色中,矗立着...