原创 JS 模擬事件
//模擬事件 =》 可以模擬自動觸發這個事件,還可以獲得當前頁面參數,相當於A 標籤,button 單擊事件會覆蓋當前的url,無法獲得當前頁面參數 function chufaClick(id){ if(document.all){
原创 獲得單選按鈕的值
function getRodioValue(rodioName){ var a = document.getElementsByName( rodioName); for(var i=0; i <a.le
原创 JS eval函數(後臺組裝成對象,前臺 EVAL 接收,轉換成需要的對象屬性值)
JS eval函數(後臺組裝成對象,前臺 EVAL 接收,轉換成需要的對象屬性值)必須加載附件 第一步:後臺action 把需要的數據集轉換成: [{name:'value',pwd:'value'},{name2:'value',pwd2
原创 設置數據庫 零時排序字段
baseSpringJdbcDAO.getJdbcTemplate().update("SET @N=0;"); baseSpringJdbcDAO.getJdbcTemplate().update("UPDATE FTE_COOPER
原创 圖片上傳
第一步: jsp 批量圖片導入:<input id="fileimg" type="file" name="fileimg" > <input id="submitImage" type="submit" value="
原创 Spring Velocity 模版引擎
Spring Velocity 模版生成: jsp 第一步: spring.xml 配置 <bean id="velocityEngine" class="org.springframework.ui.velocity.Veloc
原创 java 根據文件名獲得 本地的絕對路徑
String path=request.getSession().getServletContext().getRealPath(文件名稱);
原创 解析 excel
第一步:jsp <form name="form1" method="POST" action="/cooperation/import_excel.do?fileType=excel&cityId=${cityId}" onsubmit=
原创 spring 定時器
applicationContext.xml 中配置: <!-- 投票統計定時任務 begin --> <bean id="voteStatisticsJob" class="com.fte.home.util.VoteSch
原创 Spring 多條件查詢分頁功能
Spring 多條件查詢分頁功能 第一步:Jsp .t_b th { background: none repeat scroll 0 0 #FBD39B; font-weight: normal; he
原创 多個A標籤,選中,未選中的顯示問題
多個A標籤,選中,未選中的顯示問題 第一步: Jsp <c:choose><c:when test="${cityId==21 }"><a href="javascript:;" id="area0">全部</a><a href
原创 jsp 重置功能
//下拉框 document.getElementById("areaId").selectedIndex = 0; //文本框 document.getElementById("loupan").valu
原创 Hibernater 原理總結
啓動Hibernate 構建Configuration實例,初始化該實例中的所有變量 Configuration cfg = new Configuration().configure(); 加載hibernate.cfg.xml文
原创 JS 停留500毫秒後,執行 do_Search()
function doExcute1(userid,start,cityId){ var str="下架"; if(start==100){ str="刪除"; } if(confirm("你確定要 "+str+" 此條
原创 jQuery 獲得的 onload 事件語法
$(document).ready(function(){ getLotteryList(); });