function getdata(line) { i++; if (typeof line =='string'){//判断是否为字符串 var dataarray = line.split(','); if (person.hasOwnProperty(dataarray[4]+dataarray[7]) == false){//判断是否字符串已存在,key 为 brand+x person[dataarray[4]+dataarray[7]] = dataarray;
k ++; } else{//如果已存在
if (real_length(String(dataarray)) > real_length(String(person[dataarray[4]+dataarray[7]]))){//比较字符串的非空长度,后者比前者大则替代