随笔分类 -  算法

算法
摘要:(function(){ var CacheQueue=function(name,weightValue,maxLength,clearTimerTime){ //public this.name = name; //缓存器名称 this.maxLength = maxLength || 10000; //队列最大长度 this.clearTimerTime = clearTimerTime || 1000 * 60 * 10 ; //十分钟清一次队列 this.weightValue = weigh... 阅读全文
posted @ 2014-02-27 20:07 solq 阅读(537) 评论(0) 推荐(0) 编辑
摘要:public class Weight { public static void main(String[] args) { Date now =DateUtils.string2Date("2014-02-20 24", "yyyy-MM-dd HH"); Date dataTime = DateUtils.string2Date("2014-02-20", DateUtils.PATTERN_DATE); double day=1D; //总天 double dv=1D; //总访问数 ... 阅读全文
posted @ 2014-02-27 20:02 solq 阅读(236) 评论(0) 推荐(0) 编辑
摘要:<style>body{ position:relative;}</style><script>function point(x,y){ var oDiv=document.createElement('div'); oDiv.style.position='absolute'; oDiv.style.height='5px'; oDiv.style.width='5px'; oDiv.style.backgroundColor='red'; oDiv.style.left=x+ 阅读全文
posted @ 2012-09-03 02:44 solq 阅读(259) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示