剃须刀指令如下图所示:
<td@(IsAdmin ? " class=editable name" : "") data-attr="name">it's true</td>
结果是:
<td class="editable" data-attr="name" name="">it's true</td>
虽然我需要这个:
<td class="editable name" data-attr="name">it's true</td>
怎么做 ?
剃须刀指令如下图所示:
<td@(IsAdmin ? " class=editable name" : "") data-attr="name">it's true</td>
结果是:
<td class="editable" data-attr="name" name="">it's true</td>
虽然我需要这个:
<td class="editable name" data-attr="name">it's true</td>
怎么做 ?