10 2016 档案
ajax动态给select赋值
摘要:<select name="elements" id="ele" style="width: 145px;"> </select> function for_elements(){ $.ajax({ url : 'selectElements', data : { }, dataType : 'js 阅读全文
posted @ 2016-10-31 18:22 guols 阅读(1612) 评论(0) 推荐(0)
formatter easyui 重命名
摘要:function for_method(){ datagridmethod = $('#formethod_datagrid').datagrid({ url : 'localforecast_select', iconCls : 'icon-tabgrid', pagination : true, 阅读全文
posted @ 2016-10-31 13:43 guols 阅读(343) 评论(0) 推荐(0)
ajax禁止浏览器缓存
摘要:把cache 设置为false ,把 ifModified 设置为true //工作计划function workprogram(date_time){ $.ajax({ async:false, url : 'selectMessageByDate', data : { date_time : d 阅读全文
posted @ 2016-10-26 15:12 guols 阅读(5123) 评论(0) 推荐(0)
java替换word2003
摘要:map.put("year", year); map.put("yearMonthDay", yearMonthDay); map.put("month", month); map.put("xun", xun); map.put("lastMonth", lastMonth); map.put(" 阅读全文
posted @ 2016-10-21 10:20 guols 阅读(200) 评论(0) 推荐(0)
退出登录
摘要:/** * 退出系统 */ public void logout() { Json j = new Json(); HttpSession session = ServletActionContext.getRequest().getSession(); if (session != null) { 阅读全文
posted @ 2016-10-20 17:43 guols 阅读(415) 评论(0) 推荐(0)
时间比较早晚java
摘要:package demo;import java.text.SimpleDateFormat;import java.util.Date;import java.util.Locale;public class TimeCompare { public static void main(String 阅读全文
posted @ 2016-10-19 14:55 guols 阅读(368) 评论(0) 推荐(0)
jquery 写ajax
摘要:function down(t){ $.ajax({ url : 'selectWordDate', data : { date_time : t }, dataType : 'json', success : function(data) { var datas=data.obj; $.ajax( 阅读全文
posted @ 2016-10-15 15:21 guols 阅读(183) 评论(0) 推荐(0)
js写ajax并解析json
摘要:function down(t){ var req = createRequest(); //创建request req.open("GET","selectWordDate?date_time="+t); //发送请求 req.onreadystatechange = function(){ ca 阅读全文
posted @ 2016-10-15 15:19 guols 阅读(2516) 评论(0) 推荐(0)
往mysql数据库中上传路径问题
摘要:String path = System.getProperty("catalina.home"); String fileName = morningTime+"model.docx"; path = path+"\\webapps\\JAVA_STU\\office\\templateFile\ 阅读全文
posted @ 2016-10-14 17:11 guols 阅读(190) 评论(0) 推荐(0)
java替换word表格2007
摘要:package demo;import java.io.FileOutputStream;import java.util.HashMap;import java.util.Iterator;import java.util.List;import java.util.Map;import java 阅读全文
posted @ 2016-10-13 15:37 guols 阅读(1322) 评论(0) 推荐(0)
java替换word
摘要:package demo; import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.Outp 阅读全文
posted @ 2016-10-13 14:41 guols 阅读(390) 评论(0) 推荐(0)
jsp中判断if 和 else
摘要:<c:choose> <c:when test="${date==datetime}"> <div id="edit_button_div" class="edit_button_div" style="padding-left: 100px;"> <img id="img" alt="保存文档" 阅读全文
posted @ 2016-10-12 15:36 guols 阅读(6442) 评论(0) 推荐(0)
svn被锁 The project was not built due to "org.apache.subversion.javahl.ClientException: Attempted to lock an already-locked dir
摘要:解决办法 : 右键该项目 , 》Team 》选"Team"-->"Refresh/Cleanup",并确认"Refresh/Cleanup" 就可以了 。 阅读全文
posted @ 2016-10-10 16:08 guols 阅读(652) 评论(0) 推荐(0)
获取tomcat路径
摘要:String serverPath = System.getProperty("catalina.home"); 阅读全文
posted @ 2016-10-10 14:32 guols 阅读(181) 评论(0) 推荐(0)
解决ajax提交中文数据乱码
摘要:function replaceWord(date,wordurl){ $.ajax({ url : 'wordReplace', type: "POST", contentType: "application/x-www-form-urlencoded; charset=utf-8", data 阅读全文
posted @ 2016-10-10 13:47 guols 阅读(149) 评论(0) 推荐(0)
获取项目路径js
摘要:var curWwwPath=window.document.location.href; //获取主机地址之后的目录,如: myproj/view/my.jsp var pathName=window.document.location.pathname; var pos=curWwwPath.i 阅读全文
posted @ 2016-10-09 15:17 guols 阅读(148) 评论(0) 推荐(0)