随笔分类 - 算法
算法
摘要:(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...
阅读全文
摘要: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; //总访问数 ...
阅读全文
摘要:<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+
阅读全文