ITeye博客

yanbingwei

yanbingwei · 共 2 篇文章

Disruptor3.2官方例子测试

事件对象: /** POJO @author lenovoe * */ public class ValueEvent { private long value; public long getValue() { return value; } public void setValue(final long value) { this.value = value; } public final static EventFactory EVENT_FACTORY = new EventFactory () { public ValueEvent newInstance() { return n…

2013-12-05T17:25:24Z · 编程语言 · 评论(0)

javaScript-日期格式化与获取某月的天数

//日期格式化 Date.prototype.format = function(format) { var o = { "M+" : this.getMonth()+1, //月 "d+" : this.getDate(), //天 "h+" : this.getHours(), //小时 "m+" : this.getMinutes(), //分钟 "s+" : this.getSeconds(), //秒 "q+" : Math.floor((this.getMonth()+3)/3), //刻钟 "S" : this.getMilliseconds() //毫秒 } if(/(y+)…

2013-03-28T09:40:23Z · Web前端 · 评论(0)