【搜索框查詢】搜索功能+搜索框內容回顯


搜索流程從首頁開始

后端

SearchService接口

前端

表單提交路徑【th:action="@{/search/list}" 】
獲取搜索條件中的關鍵字進行回顯【th:value="${searchMap.keywords}"】

<!--頭部-->
<div class="search">
    <form  th:action="@{/search/list}" class="sui-form form-inline">
        <div class="input-append">
            <input th:type="text" id="autocomplete" name="keywords"  th:value="${searchMap.keywords}"  class="input-error input-xxlarge" />
            <button class="sui-btn btn-xlarge btn-danger" th:type="submit">搜索</button>
        </div>
    </form>
</div>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM