摘要:
Date.prototype.Format = function (fmt) { //author: meizz var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), // 阅读全文
摘要:
1 B类中的想得到A类中的一个map结果 2 3 Class A{ 4 // 通过某种方法得到的transMap 5 B.setTransInfo(transMap); 6 7 } 8 9 Class B{10 11 private static Map ... 阅读全文
摘要:
1 float f1 = 9803300f; 2 float f2 = 15834944f; 3 float val = f1/f2; 4 BigDecimal big = new BigDecimal(val).multiply(new BigDecimal(100)).setScale(2, ... 阅读全文
摘要:
1 /** 2 * 是否是数字或小数 3 * @tags @return 4 * @exception 5 * @author wanghc 6 * @date 2015-9-16 下午5:50:15 7 * @return boolea... 阅读全文
摘要:
1 1.他就比较聪明了..... 2 3 7 8 2.会用新鲜东西的朋友....... 但是需要 IE5.5+才支持。 9 10 14 15 3.总结后,自己写了个javascript多位数四舍五入的通用方法 16 17 //num表示要四舍五入的数,v... 阅读全文
摘要:
今天对目录及其文件进行压缩:/usr/local/test # tar -cvf /usr/local/auto_bak/test.tar /usr/local/test 仅打包,不压缩 # tar -zcvf /usr/local/auto_bak/test.tar.gz /usr/local/t... 阅读全文
摘要:
1 // 对Date的扩展,将 Date 转化为指定格式的String 2 // 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符, 3 // 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字) 4 // 例子: ... 阅读全文
摘要:
1 Array.prototype.contain = function(e){ 2 for(i=0;i -1) {18 this.splice(index, 1);19 }20 };21 22 Array.prototype.distinct=function()... 阅读全文
摘要:
1 package com.dawning.gridview.app.resourcemanagement.service.servicemanagement.discoverresourceutil; 2 3 import java.util.concurrent.ExecutorServic... 阅读全文
摘要:
byte的取值范围为-128~127,占用1个字节(-2的7次方到2的7次方-1)short的取值范围为-32768~32767,占用2个字节(-2的15次方到2的15次方-1)int的取值范围为(-2147483648~2147483647),占用4个字节(-2的31次方到2的31次方-1)lon... 阅读全文