摘要: 阅读全文
posted @ 2015-04-08 14:59 尚荣伊翁 阅读(1497) 评论(0) 推荐(0) 编辑
摘要: /***java打包下载ZIP压缩文件*/public void downZipFile() { try { request.setCharacterEncoding("UTF-8"); response.setContentType(... 阅读全文
posted @ 2015-04-02 14:46 尚荣伊翁 阅读(345) 评论(0) 推荐(0) 编辑
摘要: /*IE浏览器版本检测*/var user_agent = navigator.userAgent.toLowerCase();var b = false;var c = '';if (user_agent.indexOf("msie 9.0")>-1&&user_agent.indexOf("tr... 阅读全文
posted @ 2015-03-16 16:04 尚荣伊翁 阅读(1996) 评论(0) 推荐(0) 编辑
摘要: 用到的额外jar包:pdf-renderer-1.0.5.jar,下载地址:http://pan.baidu.com/s/1pJC26Wb 备注:jdk需要1.6,否则JPEGImageEncoder找不到 阅读全文
posted @ 2015-01-08 10:00 尚荣伊翁 阅读(2272) 评论(0) 推荐(0) 编辑
摘要: //ztree数据回显$(document).ready(function(){ //加载树 $.fn.zTree.init($("#treeDemo2"), setting2, zNodes2); //获取到树 var zTree_Menu = $.fn.zTree.get... 阅读全文
posted @ 2014-12-26 13:58 尚荣伊翁 阅读(1602) 评论(0) 推荐(0) 编辑
摘要: 基本知识l showModalDialog() (IE 4+ 支持)l showModelessDialog() (IE 5+ 支持)l window.showModalDialog()方法用来创建一个显示HTML内容的模态对话框。l window.showModelessDialog()方法用来创... 阅读全文
posted @ 2014-10-11 16:10 尚荣伊翁 阅读(175) 评论(0) 推荐(0) 编辑
摘要: import java.text.SimpleDateFormat;import java.util.ArrayList;import java.util.Calendar;import java.util.Date;import java.util.List;/** * 获取两个时间段内的所有日期... 阅读全文
posted @ 2014-09-26 18:48 尚荣伊翁 阅读(5435) 评论(0) 推荐(0) 编辑
摘要: table{table-layout: fixed;}td{white-space: nowrap;overflow: hidden;text-overflow: ellipsis;} 阅读全文
posted @ 2014-08-31 12:07 尚荣伊翁 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1 $.ajax({ 2 cache: true, 3 type: "POST", 4 url:ajaxCallUrl, 5 data:$('#yourformid').serialize(),// 你的formid 6 async: false, 7 error: fun... 阅读全文
posted @ 2014-08-29 17:39 尚荣伊翁 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1、web.xml配置文件 messagePrefix 需要在tomcat启动时获取的字符串2、普通java类 1 import org.springframework.web.context.ContextLoader; 2 import org.springframework.web.con... 阅读全文
posted @ 2014-07-19 15:07 尚荣伊翁 阅读(441) 评论(0) 推荐(0) 编辑