摘要: 案例使用的框架:jsp+spring+mybaties <form id="importForm" name="importForm" method="post" target="win" action="importExcel.ht" enctype="multipart/form-data"> 阅读全文
posted @ 2018-09-29 15:30 爱跳舞的程序员 阅读(912) 评论(0) 推荐(0) 编辑
摘要: 官网api地址 http://poi.apache.org/apidocs/index.html 官方下载地址 http://poi.apache.org/download.html 一些说明 HSSF(用于操作Excel的组件)提供给用户使用的对象在org.apache.poi.hssf.user 阅读全文
posted @ 2018-09-29 14:32 爱跳舞的程序员 阅读(426) 评论(0) 推荐(0) 编辑
摘要: js代码: function exportRepQudl() { if (confirm("导出输出页面内容?")) { var id = $("input[name='id']").val(); var lx = $("input[name='lx']").val(); var rq = $("i 阅读全文
posted @ 2018-09-29 14:24 爱跳舞的程序员 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 可以引入一个jsp,这个jsp的内容如下: <%@page pageEncoding="UTF-8" contentType="text/javascript; charset=UTF-8"%>//设置ContextPath var __ctx='<%=request.getContextPath( 阅读全文
posted @ 2018-09-26 10:30 爱跳舞的程序员 阅读(985) 评论(0) 推荐(0) 编辑
摘要: jsp页面:三种方法输出 <c:forEach items="${myMap}" var="mapV" varStatus="status"> <tr> <td>${status.index+1}</td> <td class="ygdl"> <%-- <c:if test="${mapV.key= 阅读全文
posted @ 2018-09-25 19:19 爱跳舞的程序员 阅读(1488) 评论(0) 推荐(0) 编辑
摘要: //根据id获取控件的值,如果没有数据默认赋值为0 function getDataById(id) { var data = $("#"+id).val(); if(data==""){ data=0; } return data; } 阅读全文
posted @ 2018-09-12 16:51 爱跳舞的程序员 阅读(86) 评论(0) 推荐(0) 编辑
摘要: $("#div1", "#divN").click(function() { }); //或者 $("#div1, #divN").click(function() { }); 阅读全文
posted @ 2018-09-12 16:49 爱跳舞的程序员 阅读(402) 评论(0) 推荐(0) 编辑
摘要: <fmt:formatNumber value="${zjdl.ygdl }" pattern="0.00" /> 阅读全文
posted @ 2018-09-11 19:00 爱跳舞的程序员 阅读(177) 评论(0) 推荐(0) 编辑
摘要: package com; import java.math.BigDecimal; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.D 阅读全文
posted @ 2018-09-10 17:22 爱跳舞的程序员 阅读(169) 评论(0) 推荐(0) 编辑
摘要: .myLinkA { text-decoration: none; font-size: 12px; background-color: #4CAF50; border: none; padding: 15px 32px; text-align: center; display: inline-bl 阅读全文
posted @ 2018-09-10 16:12 爱跳舞的程序员 阅读(199) 评论(0) 推荐(0) 编辑