2013年1月12日

设置页面那些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 陈惟鲜的博客 阅读(306) 评论(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 陈惟鲜的博客 阅读(1432) 评论(0) 推荐(0)

DateUtil 日期常用工具

摘要: package com.ccjr.cube.common.util; import java.text.DecimalFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.tim 阅读全文

posted @ 2013-01-12 10:59 陈惟鲜的博客 阅读(198) 评论(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 陈惟鲜的博客 阅读(200) 评论(0) 推荐(0)

导航