javascript - 额外的行出现在网格/表格中
问题描述
我是 html 新手,需要一些帮助来完善我的代码。我创建了一个网格/表格,并且正在通过表格填写数据。该表看起来很好,并且数据也正在保存。但是,网格的开头出现了额外的一行。我不知道如何摆脱它。
<table class="table border nowrap dataTable no-footer">
<thead class="thead-dark">
<tr role="row">
<th class="plex-data-table-head sorting_asc">Range</th>
<th class="plex-data-table-head sorting_asc">Sum of voxels</th>
<th class="plex-data-table-head sorting_asc">Sum of HU x # product</th>
<th class="plex-data-table-head sorting_asc">Mean HU</th>
<th class="plex-data-table-head sorting_asc">Weighting Factor</th>
<th class="plex-data-table-head sorting_asc">Total Volume</th>
<th class="plex-data-table-head sorting_asc">Ca Score</th>
</tr>
</thead>
<tbody>
@{foreach record in model['data']['grid-tlevci']} @{if !helpers.isEmpty(model['data']['grid-tlevci'])}
<tr class="grid-rows odd">
<td>
@{if !helpers.isEmpty(record['grid-9670-7550'])} @{record['grid-9670-7550']} @{else} --- @{fi}
</td>
<td>
@{if !helpers.isEmpty(record['grid-4140-10'])} @{record['grid-4140-10']} @{else} --- @{fi}
</td>
<td>
@{if !helpers.isEmpty(record['grid-hm9xcc'])} @{record['grid-hm9xcc']} @{else} --- @{fi}
</td>
<td>
@{if !helpers.isEmpty(record['grid-kfjdo'])} @{record['grid-kfjdo']} @{else} --- @{fi}
</td>
<td>
@{if !helpers.isEmpty(record['grid-p4m23'])} @{record['grid-p4m23']} @{else} --- @{fi}
</td>
<td>
@{if !helpers.isEmpty(record['grid-udj32'])} @{record['grid-udj32']} @{else} --- @{fi}
</td>
<td>
@{if !helpers.isEmpty(record['grid-609p6'])} @{record['grid-609p6']} @{else} --- @{fi}
</td>
</tr>
@{fi} @{end}
</tbody>
</table>
解决方案
推荐阅读
- sql - 复杂的 SQL 查询,无处可答 :(
- jmeter - Jmeter从同时执行的多个线程组将数据写入excel表
- excel - VBA 代码返回字符串作为范围位置的变量
- java - 无法使用 Selenium 脚本输入完整值,只有一半的值被传递到该字段
- html - 如何将边框应用于facebook页面的所有元素[悬停]而不破坏整个页面的外观
- django - 如何使用 django-filter 按当前用户过滤 ModelChoiceFilter
- java - 考虑在你的配置中定义一个 'com.modern.converter.UserConverter' 类型的 bean
- batch-file - 使用 java home 问题的自定义路径启动 /b javaw
- angular - 将焦点设置在输入字段上 - 复选框
- c# - Linq 查询列表
- > C# 类的 where 属性