01 2013 档案

实现网页打印实例
摘要:代码如下:View Code 1 <%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%> 2 <%@include file="/docc/common.jsp"%> 3 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 4 <HTML><HEAD> 5 阅读全文

posted @ 2013-01-24 08:56 陈惟鲜的博客 阅读(296) 评论(0) 推荐(0) 编辑

设置页面那些ID对应的对象隐藏setDisplay
摘要:// 设置按钮是否可用,以逗号分割, "是否显示")// 如setDisabled("showBtn,updateBtn",true);function setDisabled(ids, isDisabled){ if (ids != null && ids != ""){ var arr = ids.split(","); for (var i=0; i<arr.length; i++){ if($(arr[i])!=null){ $(arr[i]).disabled=isDisabled; 阅读全文

posted @ 2013-01-12 11:22 陈惟鲜的博客 阅读(292) 评论(0) 推荐(0) 编辑

NumberUtils BigDecimal 对应的加减乘除、格式化等方法
摘要:View Code import java.math.BigDecimal;import java.text.DecimalFormat;import java.text.NumberFormat;/**BigDecimal 对应的加减乘除、格式化等方法<br /> * * @author EX-CHENWEIXIAN001 *2012-11-8 */public class NumberUtils { /** * 默认返回小数2位 */ public static final int DEFAULT_SCALE = 2; /** * 提供精... 阅读全文

posted @ 2013-01-12 11:01 陈惟鲜的博客 阅读(1408) 评论(0) 推荐(0) 编辑

DateUtil 日期常用工具
摘要:/** * 日期处理工具类 * @author BIANDONGYU850 * @date 2012-7-26 下午07:38:46 * @path com.pingan.saims.scms.common.util * @description */public class DateUtil { /** * 默认日期格式化字符串:yyyy-MM-dd */ public static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd"; //日期格式化对象 private static SimpleDateFormat sdf 阅读全文

posted @ 2013-01-12 10:59 陈惟鲜的博客 阅读(188) 评论(0) 推荐(0) 编辑

获取异常详细信息,组成字符串
摘要:View Code 1 /** 2 * 获取exception详情信息 3 * 4 * @param e 5 * Excetipn type 6 * @return String type 7 */ 8 public static String getExceptionDetail(Exception e) { 9 10 StringBuffer msg = new StringBuffer(10); 11 12 if (e !=... 阅读全文

posted @ 2013-01-12 10:51 陈惟鲜的博客 阅读(190) 评论(0) 推荐(0) 编辑

js屏蔽鼠标右键
摘要:oncontextmenu="window.event.returnValue=false" style="overflow-y: hidden; overflow-x: hidden"ajs9 leftmargin="0" topmargin="0"<body oncontextmenu="return false"></body><!--禁止网页另存为: --><noscript><iframe src=*.html></if 阅读全文

posted @ 2013-01-04 08:53 陈惟鲜的博客 阅读(210) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示