`
文章列表

java 时间验证

^([01][0-9]|2[0-3]):[0-5][0-9]-([01][0-9]|2[0-3]):[0-5][0-9]$
function doDateCompare(strDate){ var ereg = /^(\d{1,4})(-|\/)(\d{1,2})(-|\/)(\d{1,2})$/; var checkResult = strDate.match(ereg); if (checkResult == null) { return false; } var year = strDate.substring(0,4); var month = strDate.substring(5,7); var day = strDate.substring(8,10); ...

强制 IE9 兼容 IE7

    博客分类:
  • IE
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
/* * Copyright (C) NLS * 担当者:朱慧鵬 * 更新者:朱慧鵬 * 最終更新日:2012/12/20 */ package com.nls.dispatch.common; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.Servl ...

java 清空session

HttpServletRequest request = ServletActionContext.getRequest (); request.getSession().invalidate();
var driverCode = $("driverCode"); $("driverCodeName").value = driverCode[driverCode.selectedIndex].text;

Vss 插件

保存到plugin下

fat jar 插件

保存到plugins
jsp java
ColorPicker

Excel 换行

//特殊格式-字体 WritableFont gFont =new WritableFont(WritableFont.ARIAL,10, WritableFont.NO_BOLD,false, UnderlineStyle.NO_UNDERLINE,Colour.BLACK); //特殊格式-用字体定义格式 WritableCellFormat gFormat =new WritableCellFormat(gFont); //设置居中对齐 gFormat.setAlignment(Alignment.CENTRE); //自动换行 gFormat.setWrap(true); //强制换行 ...
/^[a-zA-Z&.,\'\/\-\s\(\)]+$/g 如:Industrial & Commercial Bank of China Berkshire Hathaway Johnson & Johnson
String[] stringYear = new String[3]; // 获取当前日期时间 Date nowDate = new Date(); Calendar cal = Calendar.getInstance(); cal.setTime(nowDate); // 初始化统计年月(系统日期) Date dateToday = cal.getTime(); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy"); String strY ...

Map 迭代

Iterator<String> iterator = mstKinouKengenMap.keySet().iterator(); while (iterator.hasNext()) { String key = iterator.next(); mstKinouKengenMap.get(key) }
// 主页面 // 窗口打开个数 var open_flg = 0; // 窗口状态 var resultValue = null; // 出发地区选择 function popupHaisoum() { // 高度 var height = 600; // 宽度 var width = 1025; // 地址 var url = "TrnAcceptanceGoodsDetailPop!retrieve.action?selectKbn=Haisoum"; // 标题 var ...
Global site tag (gtag.js) - Google Analytics