摘要: 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 阅读全文
posted @ 2021-03-04 16:52 南山下的采药人 阅读(143) 评论(0) 推荐(0) 编辑
摘要: public class BubbleSort1 { /** *冒泡排序Java版:每次比较两个相邻的元素,将较大的元素交换至右(左)端 */ //冒泡排序基础版 public int [] A(int [] arr){ int temp; for (int i = 0; i < arr.lengt 阅读全文
posted @ 2021-03-04 16:48 南山下的采药人 阅读(47) 评论(0) 推荐(0) 编辑
摘要: import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import o 阅读全文
posted @ 2021-03-04 16:41 南山下的采药人 阅读(98) 评论(0) 推荐(0) 编辑
摘要: //读取excel public static Workbook readExcel(String filePath){ Workbook wb = null; if(filePath==null){ return null; } String extString = filePath.substr 阅读全文
posted @ 2021-03-04 16:24 南山下的采药人 阅读(260) 评论(0) 推荐(0) 编辑
摘要: ; cpic.util = {}; /**** * 校验 * @param elementsId * @param validateRequired required是否校验(暂存时) * @param context * @returns {Boolean} */ cpic.util.doVali 阅读全文
posted @ 2021-03-04 16:13 南山下的采药人 阅读(103) 评论(0) 推荐(0) 编辑
摘要: +function tab($){ //警告框 $.fn.alert = function(e){ var $this = $(this); $this.find('.close').click(function(){ $this.fadeOut(250); }); }; //一、二级菜单 $.fn 阅读全文
posted @ 2021-03-04 16:09 南山下的采药人 阅读(129) 评论(0) 推荐(0) 编辑
摘要: /**** * 给指定的button创建上传操作 */ ;cpic.upload = function(attachButtonId, isRead) { var code = isRead?"ECM0002":"ECM0001"; var formId = "_" + attachButtonId 阅读全文
posted @ 2021-03-04 16:06 南山下的采药人 阅读(178) 评论(0) 推荐(0) 编辑
摘要: /** * JSP多个div找到父级节点 */ cpic.addMainHtml = function(div){ $("#"+div,window.top.document.body).remove(); var userModal =$("#"+div).parent().html(); $(w 阅读全文
posted @ 2021-03-04 16:03 南山下的采药人 阅读(160) 评论(0) 推荐(0) 编辑
摘要: /**** * @param idMap {insured:['insuredName','insuredAge'],applicant:['applicantName','applicantSex']} * @return * { * insured:{ * insuredName:"nick", 阅读全文
posted @ 2021-03-04 15:54 南山下的采药人 阅读(50) 评论(0) 推荐(0) 编辑
摘要: /** * 提示框 * @param content 必须,提示内容 * @param title 默认为“提示”,可不传 * @param onClose 关闭提示框后执行的函数function,可不传 */ cpic.alert=function(content, title, onClose) 阅读全文
posted @ 2021-03-04 15:51 南山下的采药人 阅读(102) 评论(0) 推荐(0) 编辑
摘要: /** * 初始化省市联动 * @param idMap [{p:'provinceSelect',c:'citySelect'}] **/ cpic.initArea = function(idMap){ for(var i=0;i<idMap.length;i++) { $("#" + idMa 阅读全文
posted @ 2021-03-04 15:48 南山下的采药人 阅读(113) 评论(0) 推荐(0) 编辑
摘要: /*** * 生成页码,小于2时没有页码 * @param page 当前页(Number) * @param totalPage 总页码(Number) * @param pagerSelector 生成的页码所放置的id(String) * @param callbackFunctionName 阅读全文
posted @ 2021-03-04 15:38 南山下的采药人 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1 //设置日期控件 2 3 $("#startdate,#enddate").datepicker({ 4 changeMonth : true, 5 changeYear : true, 6 dateFormat : 'yy-mm-dd', 7 yearRange : "-100:+50", 8 阅读全文
posted @ 2021-03-04 15:28 南山下的采药人 阅读(465) 评论(0) 推荐(0) 编辑
摘要: CellStyle类中,有关于填充颜色、边框、字体、对齐方式等方法 一、表框 setBorderRight(BorderStyle border) setBorderTop(BorderStyle border) setBorderLeft(BorderStyle border) setBorder 阅读全文
posted @ 2021-03-04 14:55 南山下的采药人 阅读(794) 评论(0) 推荐(0) 编辑