
技术
文章平均质量分 69
xu19881229
程序员
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
导出直接输出流下载功能(带弹出框)
try{//根据系统时间得到文件名String filename = String.valueOf(System.currentTimeMillis()).concat(".xls" );// 设置下载时客户端Excel的名称response.setContentType("application/vnd.ms-excel" );response.setHeader原创 2014-12-19 13:58:28 · 444 阅读 · 0 评论 -
java数字大写转换小程序
//数字转换成大写并返回 public static String changeToBig( double value){ char[] hunit = { '拾', '佰', '仟' }; // 段内位置表示 char[] vunit = { '万', '亿' }; // 段名表示 char[] di转载 2014-12-19 14:01:00 · 392 阅读 · 0 评论 -
java去除周末计算天数
/** * 结束时间减去开始时间除去周末的天数 * @param strStartDate * @param strEndDate * @return 天数 */ public static int getDutyDays(String strStartDate,String strEndDate) { Simpl转载 2014-12-19 13:56:19 · 1230 阅读 · 0 评论 -
java处理图片公共方法
/** * 处理图片 处理图片公共方法 * @param img * @param poster * @throws Exception */ public String posterImg( byte[] img, String type) throws Exception原创 2014-12-19 14:13:40 · 402 阅读 · 0 评论