【发布时间】:2018-09-05 16:01:59
【问题描述】:
我有一个网页会显示模块的文档,每个模块都记录在一个单独的表格中,如下所示
<div role="main">
<div class="section">
<h2 id="acces_extranet">Acces_Extranet</h2>
<table>
<thead>
<tr>
<th>Nom</th>
<th>Commentaire</th>
</tr>
</thead>
<tbody>
<tr>
<td />
<td />
</tr>
</tbody>
</table>
<h3 id="connexion_extranet">Connexion_Extranet</h3>
<table>
<thead>
<tr>
<th>Nom</th>
<th>Commentaire</th>
</tr>
</thead>
<tbody>
<tr>
<td />
<td />
</tr>
</tbody>
</table>
<h4 id="m00_0_lancer_navigateur">M00_0_Lancer_Navigateur</h4>
<table>
<thead>
<tr>
<th>Variables</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>navigateur</td>
<td>Insérer description</td>
</tr>
<tr>
<td>url</td>
<td>Insérer description</td>
</tr>
</tbody>
</table>
</div>
</div>
另一方面,我有一个转换为 JSON 文件的 CSV 文件,我想从该文件中读取数据以将它们永久显示在我的 HTML 页面中。
[
{
"Module": "M00_0_Lancer_Navigateur",
"Variable": "navigateur",
"Description": "Le navigateur à utiliser pour le test, non sensible à la case",
"Valeurs": "",
"": ""
},
{
"Module": "M00_0_Lancer_Navigateur",
"Variable": "url",
"Description": "l'url initiale du site à lancer, il peut s'agir d'une url ARIANE ou magie de tout environnement",
"Valeurs": "",
"": ""
},
{
"Module": "M00_2_Extranet_Connexion",
"Variable": "login",
"Description": "Insérer description",
"Valeurs": "",
"": ""
}
]
我想在 JSON 文件中的表格中显示数据?
【问题讨论】:
标签: html json data-binding