摘要:
1.实体类 public class DictTreePair implements Serializable { private static final long serialVersionUID = 1L; /** * 字典类型 */ @ApiModelProperty("字典类型") pri 阅读全文
摘要:
场景:在 jsp 页面中获取到 input 框的中文值,作为参数通过 ajax 传递到后端会出现乱码现象 解决方法: 在 jsp 页面中使用 JavaScript 的 encodeURI() 函数对中文参数进行编码: var chinaName = jQuery("#chinaName ").val 阅读全文
摘要:
poi生成excel文件时报错,解决方法: 1.将文件名后缀.xls改成.xlsx 2.使用的类HSSFWorkbook、HSSFSheet等修改为XSSFWorkbook、XSSFSheet 3.使用XSSFWorkbook需要引入相应的JAR包,版本要保持一致 <dependency> <gro 阅读全文
摘要:
import java.util.Random; public class RandomPassword { public static void main(String[] args) { // int i =(int)(8+Math.random()*(20-8+1)); int i=8; Ra 阅读全文
摘要:
public class BubbleSort1 { /** *冒泡排序Java版:每次比较两个相邻的元素,将较大的元素交换至右(左)端 */ //冒泡排序基础版 public int [] A(int [] arr){ int temp; for (int i = 0; i < arr.lengt 阅读全文
摘要:
import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import o 阅读全文
摘要:
//读取excel public static Workbook readExcel(String filePath){ Workbook wb = null; if(filePath==null){ return null; } String extString = filePath.substr 阅读全文
摘要:
; cpic.util = {}; /**** * 校验 * @param elementsId * @param validateRequired required是否校验(暂存时) * @param context * @returns {Boolean} */ cpic.util.doVali 阅读全文
摘要:
+function tab($){ //警告框 $.fn.alert = function(e){ var $this = $(this); $this.find('.close').click(function(){ $this.fadeOut(250); }); }; //一、二级菜单 $.fn 阅读全文
摘要:
/**** * 给指定的button创建上传操作 */ ;cpic.upload = function(attachButtonId, isRead) { var code = isRead?"ECM0002":"ECM0001"; var formId = "_" + attachButtonId 阅读全文