- 博客(6)
- 收藏
- 关注
原创 poi的简单操作
@Test public void test8() throws IOException{ Workbook wb = new HSSFWorkbook(); CellRangeAddress cra = new CellRangeAddress(0,0,0,2);//合拼单元格 CellStyle cellStyle = wb.createCellStyle(); cellStyle.
2016-12-08 11:37:09
293
原创 springMVC实现.xls文件的下载
@RequestMapping(value="excel.do", produces="application/vnd.ms-excel") @ResponseBody public byte[] excel( HttpServletResponse response) throws IOException{ response.setHeader( "Content-Dispos
2016-12-08 11:18:20
622
原创 springMVC接收表单传来的file,并上传
controller层 @RequestMapping(value = "/fileupload.do") @ResponseBody public JsonResult fileupload(@RequestParam(value = "imgUpload") MultipartFile uploadFile, HttpServletRequest request) { String
2016-12-06 10:04:24
1978
原创 ajax提交表单
function check(){ $("#addForm").ajaxSubmit({ "url":"/xhsoft/user/save.do", "type":"post", "dataType":"json", "beforeSubmit":function(){ if(checkName()+checkPassword()+checkAccount()+checkEmail()
2016-12-06 09:16:33
208
原创 js获取url后的参数
function getQueryString(key){ var reg = new RegExp("(^|&)"+key+"=([^&]*)(&|$)"); var result = window.location.search.substr(1).match(reg); return result?decodeURIComponent(result[2]):nu
2016-12-01 17:11:36
271
转载 js 图片滚动
html lang="en"> head> meta charset="UTF-8"> title>Titletitle> style> *{ margin: 0; padding: 0; } #div1{ width: 640px;
2016-11-18 17:21:30
287
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅