摘要:
<%-- <div align="center" style="margin-top:30px;">当前第:${param.page }页;共:${ param.totalPage}页<a href="getUserListServlet?page=1">首页</a> <c:if test="${param.page != 1}"><a href="getUserListServlet?page=${param.page-1}"> 阅读全文
摘要:
1.单字段查询,一个filed对应一个keywordQueryParser parser = new MultiFieldQueryParser(fieldName, analyzer);parser.setAllowLeadingWildcard(true);Query query = null;query = parser.parse(keyword);hits = searcher.search(query);if (hits != null) { docList = new ArrayList<Document>(); for (int i = 0; i < hits 阅读全文
摘要:
1.回车实现div内按钮的click事件:$(".searcharea").keydown(function(e){ var code; if (!e) { var e=window.event; } if(e.keyCode) { code=e.keyCode; } else if(e.which) { code = e.which; } if(code==13)... 阅读全文