给下拉列表select中的数据分类

xiaoxiao2021-02-28  88

可以通过给option标签包裹一层optgroup标签来给下拉列表中的数据分类

格式:

<select>

    <optgroup label="广州">

    <option>列表数据</option>

    </optgroup>

</select>

转载请注明原文地址: https://www.6miu.com/read-2630554.html

最新回复(0)