完美實現。。。。
IDEA+Maven構建
https://gitee.com/robei/SparkWeb/tree/master/src/main/java/com/search
IDEA+Maven構建
https://gitee.com/robei/SparkWeb/tree/master/src/main/java/com/search
2017-12-30
ajax 實現異步的智能搜索框的提示功能,通過jquery時時獲取頁面文本框的數據返回到后臺吧結果查詢出來,把json串傳到前臺解析出來,通過dom框 展示出來。
2017-12-28
這個內容展示可以不用這么麻煩 新手就用簡單的ul li的方式就可以了很簡單
<ul id="search_results" style="border:1px solid #ccc; width: 381px; height: auto;background-color:#ccc; display:none;" >
<li>結果1</li>
<li>結果2</li>
<li>結果3</li>
<li>結果4</li>
<li>結果五</li>
</ul>
當搜索框有內容時就用js把display屬性改為block 沒有內容就改為none
<ul id="search_results" style="border:1px solid #ccc; width: 381px; height: auto;background-color:#ccc; display:none;" >
<li>結果1</li>
<li>結果2</li>
<li>結果3</li>
<li>結果4</li>
<li>結果五</li>
</ul>
當搜索框有內容時就用js把display屬性改為block 沒有內容就改為none
2017-12-05
org.apache.catalina.core.StandardWrapperValve invoke
嚴重: Servlet.service() for servlet [search] in context with path [/studyajax] threw exception [Servlet execution threw an exception] with root cause
java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException
嚴重: Servlet.service() for servlet [search] in context with path [/studyajax] threw exception [Servlet execution threw an exception] with root cause
java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException
2017-12-01