react各个子元素绑定气泡以及数组循环创建元素

render: (text, cell) => {
        if ((cell.bill_type == 1310 || cell.bill_type == 1318) && cell.info.ladder_coeff && cell.info.ladder_coeff !== []) {
          const ladder_coeff = 
{ Object.keys(cell.info.ladder_coeff).map((itemKey,item) => { return

{itemKey + ' : ' + cell.info.ladder_coeff[itemKey].toString()}

}) }
return (
{text}
) } else { return text } }

 

你可能感兴趣的:(JS,react)