Rob*_*ert 10 python jinja2 webapp2
如何在以下示例中基于Python if语句添加条件CSS类以显示has-success has-feedback表单元素?
<div class="form-group {% if not error_username %} has-success has-feedback {% endif %}">
Run Code Online (Sandbox Code Playgroud)
Sum*_*yan 17
以这种方式写条件.
<div class="form-group {{'has-success has-feedback' if not error_username }}">
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5083 次 |
| 最近记录: |