javascript - 补充 html 表中的池
问题描述
我有表格要在 html 中做,
<thead>
...
</thead>
<tbody>
// tbody has 30 rows for 15 columns.
</tbody>
在几列中,我必须插入该字段
<input type = "time" name = "1st-row/1st-column">
<input type = "time" name = "2nd-row/1st-column">
<input type = "time" name = "3rd-row/1st-column">
<input type = "time" name = "30th-row/1st-column">
- 相同的第 2 列/第 3 列/第 5 列 + ... + 第 10 列
我是否必须通过 html 直接在其中插入字段,是否可以更快更清晰地插入字段?如果这是怎么办呢?
解决方案
<table>
<thead>
</thead>
<tbody>
@for(int i=0;i<30;i++)
{
<tr>
@for(int y=0;y<15;y++)
{
<td>columns...</td>
}
</tr>
}
</tbody>
</table>
推荐阅读
- reactjs - ReactJS:如何通过链接传递函数到另一个组件?
- assembly - 为什么 MOV AX,数据有效?
- c# - MSMQ 接收方法缓慢
- python - Pandas 函数 pandas.read_sql_table() 返回一个 DataFrame,其中的值顺序错误
- python - 在 h1-beautifulsoup 中选择 itemTitle
- java - querydsl 中的正则表达式
- azure - 将应用程序连接到 Azure SignalR 服务
- if-statement - nginx 请求标头的通配符匹配
- javascript - 如何自定义 Material-UI-Pickers 以具有通用的月/日
- django - Django - 折扣不再有效后如何显示特定文本