International新增adsplay_API(id99); 表格缺失单元格显示0; huya待id后补
This commit is contained in:
+1
-1
@@ -191,7 +191,7 @@ function renderAccTable(tblId, rowsData, totalKey){
|
||||
var body='';
|
||||
rows.forEach(function(r){
|
||||
body+='<tr><td>'+r.dt+'</td><td class="pos">'+n2(r[totalKey])+'</td>';
|
||||
accs.forEach(function(a){ body+='<td>'+n2(r[a])+'</td>'; });
|
||||
accs.forEach(function(a){ body+='<td>'+n2(r[a]!=null?r[a]:0)+'</td>'; }); // 缺失/找不到显示0
|
||||
body+='</tr>';
|
||||
});
|
||||
document.querySelector('#'+tblId+' tbody').innerHTML=body;
|
||||
|
||||
Reference in New Issue
Block a user