【发布时间】:2017-08-27 19:35:40
【问题描述】:
我正在使用烧瓶制作网站。 它使用 top.html 中的 sql 显示一个列表,其中每个元素都是一个超文本。
<table class="table table-striped">
<thead></thead>
<tr>
<th>Company</th>
</tr></thead>
<tbody>
{% for company in companies %}
<tr>
<td><a href="{{ url_for('text') }}" method = "POST" name = "{{ company.name }}">{{ company.name }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
所以我想知道从列表中单击了哪个超文本,以便我可以在 /text 中加载其各自的内容。 请同时提供python代码(烧瓶代码)。
【问题讨论】:
标签: javascript python sql flask