# 参考:https://blog.csdn.net/zxl_langya/article/details/79247307
# bootstrap-select属性:
       <select  multiple="multiple" size="5" class="selectpicker"  data-max-options="2" data-live-search="true"
                                 name="types" >

                            {% for foo in  mcc_name_list %}
                                <option value="{{ foo.0 }}">{{ foo.0 }}|{{ foo.1 }}</option>

                            {% endfor %}

       </select>

 属性解释:
 multiple 多选框
 data-live-search="true" 模糊查询
 data-max-options="2"  多选限制2个

相关文章:

  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
  • 2021-12-15
猜你喜欢
  • 2022-12-23
  • 2021-07-19
  • 2021-09-16
  • 2022-12-23
  • 2022-01-15
  • 2022-01-11
  • 2022-12-23
相关资源
相似解决方案