在angular中需要使用属性绑定绑定表格单元中的rowspan与colspan属性时,应使用attr.rowspan或者attr.colspan
例如:
<table> <tr> <td [attr.rowspan]="list.length"></td> </tr> </table>