摘要:
1 public class CreateWordDemo { 2 public void createDocContext(String file) throws DocumentException,IOException { 3 // 设置纸张大小 4 ... 阅读全文
摘要:
在后台往前台传json值得时候要加response.setContentType("text/html;charset=utf-8");//必须加上response.getWriter().print(JSONObject.fromObject(importExcelProgressDto));这样... 阅读全文
摘要:
1 //待压缩的文件目录 2 String sourceFile=sourceFilePath+"\\"+userName; 3 //存放压缩文件的目录 4 String zipFilePath = sourceFilePath; 5 //zip文件名字,不加zip 方法里面有 6 fileN... 阅读全文
摘要:
将下面代码拷贝进一个html文件中就可以运行查看效果。function downLoad(evt) { disabledButton(); MyPeriodicalExecuter(evt); } function disab... 阅读全文
摘要:
一、简介线程池类为 java.util.concurrent.ThreadPoolExecutor,常用构造方法为: ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit 阅读全文
摘要:
1 package com.baqingshe.bjs.util; 2 3 import java.io.BufferedReader; 4 5 import java.io.IOException; 6 7 import java.io.InputStream; 8 9... 阅读全文
摘要:
$.post、$.get是一些简单的方法,如果要处理复杂的逻辑,还是需要用到jQuery.ajax() 一、$.ajax的一般格式$.ajax({ type: 'POST', url: url , data: data , success: success , da... 阅读全文