若依字典

<select class="col-sm-12"  
        name="natureProjectFunds" 
        id="natureProjectFunds" 
        th:with="type=${@dict.getType('funding_type')}" 
        onchange="socialChange(this.value)">
    <option ></option>
    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
</select>
<select th:with="type=${@dict.getType('funding_type')}" >
   <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictLabel}"></option>
</select>
发布了172 篇原创文章 · 获赞 0 · 访问量 5722

猜你喜欢

转载自blog.csdn.net/weixin_44635157/article/details/103983599