`
seavers
  • 浏览: 170383 次
  • 来自: ...
社区版块
存档分类
最新评论
文章列表
写了一个超简单的串行加载工具, 不想引入框架时, 可以试用下 (function (all) { var callee = arguments.callee; all.shift()(function(data) { callee.call(null, all, data); }); })([ function(next) { setTimeout(function() { document.body.innerHTML += '<li>first'; next(); }, 1000) }, function(next ...
我们知道, 在location对象中, 可以直接获取 hostname, search , hash 等参数 而链接的url中, 我们没有现成的API可以获取这些参数 下面是一个小方法, 可以得到链接中的各种参数 function parseURL(url) { var ret = {}; ret.href = url; var match = url.match(/^([^\/:]+:)?(?:\/\/([^\/:]*)(?::([\d]+))?)?(\/?[^\?#]*)?(\?[^\#]*)?(#.*)?$/i); if (match) { ret.isV ...
网速越来越快了, 需要存硬盘的东西越来越少了 电影      没必要下载电影了, 随时随地观看在线电影,直播电视, 怀旧连续剧等   (pplive,youku) 音乐      在线音乐,在线播放列表,在线mv,最新最热歌曲,各类频道  (ting, yinyuetai) 电子书    不必把大量的电子书, 存放在硬盘里, 多是看一遍后, 就存下来了, 以后就很少翻了, 看着4.5个G的电子书, 删也不是, 不删也不是, 还是网络共享下, 大家共同学习.  (w3school, open开源文档) 书签      浏览器的书签,没必要备份在本地了, 也没有必要换电脑或重装系统时备份了,   ...
自己写的一个mini 且 simple 的 javascript loader 功能特点 异步并行载入js, 每个js只加载一次 支持模块依赖, 未检测循环依赖 支持别名 兼容ie6+ , firefox, chrome ... API :      define.alias['modName'] = 'http://path/to/mods/root/dir'     define(deps, callback)   其中 callback(dep1, dep2, dep3...)     require(deps, callback)   其中 callback(dep1, ...
今天在测试时,意外发现inline元素是可以设置background与border的, 之前有所误解, 故对其它的css属性重新回顾了下 随手写了一个demo: <h3>inline测试</h3> <div style="width:110px">&nbsp; <a href="#" style=" background: #ccc; padding: 11px; margin-left: 80px; line-height: 70px; ...
之前曾发表在 csdn(blog.csdn.net/seavers) 上, 不过, csdn的代码乱掉了, 今天重新整理了一下 反编译所使用的工具是jad.exe,笔者的测试版本是1.5.8e,压缩与解压缩使用的是WinRAR jad.exe 可反编译一个class文件为java文件,笔者的BAT可通过此工具将一个jar包反编译成一个完整的源码jar包,同时生成的目录也可以在eclipse中使用 jad.exe 官方网站 : http://www.kpdus.com/jad.html   (已失效, 从这里或者附件下载) BAT脚本见后 安装方法如下:         复制粘贴后面 ...

sync.js

自己写了一个小工具, 做个备份 支持addTask任务, 每个任务将会同步执行 引用sync.js /*** * Sync 框架 * * 支持 addTask, addCirle, addListener, finish 等功能 * */ (function() { var MAX_TOTAL = Math.pow(2, 31); function Sync(delay) { this.delay = delay; this.queue = []; //执行队列 this.listeners = []; / ...
通过测试及debug后, 得出结论, 仅代表个人意见: with的本质, 就是构造一个作用域, 将with的对象的所有key, 声明为局部变量 var inner = '123'; var outer = {inner : 'hello world', another: 'hello with'}; window.obj = {outer: outer}; with(outer) { alert(inner); alert(another); alert(outer.inner); alert(window.obj.outer.inner); show ...
从 css2.1 规范中翻译而来 出处见: http://www.w3.org/TR/CSS21/visuren.html#dis-pos-flo Ps: 原文中的box未翻译, 可理解为盒模型, 或盒子 影响 产生box及布局的三个属性 - display, position, float 之间的关系如下: 如果 display 的值为none, 则忽略position与float, 这种情况下, 元素不产生box 如果 position 的值为 absolute 或者 fixed, 则box绝对定位, float的值设定为 none , display 的值按照下面的表格来设定. ...
  记录一下分数       关数 我的分数 二星分数 三星分数 几星 1 752 750 750 3 2 690 600 690 3 3 496 490 500 2 4 508 500 520 2 5 604 590 600 3 6 581 550 570 3 7 614 450 570 3 8 671 660 670 3 9 574 540 570 3 10 801 750 800 3 11 573 560 600 ...
placeholder属性是html5的新增属性,当输入框为空时, 可以提示一些信息, 非常不错的功能 1. placeholder支持情况:      a) 已经支持: ie 9+  firefox 4.0+  chrome等      b) 需要模拟 :  ie6 ie7 ie8 firefox3.6 2. placeholder      a) 内容为空时, 内 ...

version compare

    博客分类:
  • java
Apache log4j™ 1.3 development has been abandoned and no future releases or development is anticipated. Users of Apache log4j 1.3 are encouraged to migrate to Apache log4j 1.2 or to monitor and contribute to the Apache log4j 2.0 development effort. The companions for Apache log4j 1.2 provide many of ...

php 学习笔记 (1)

    博客分类:
  • php
与java.String对比 idjava.Stringphp.String0 equals strcmp 1 substring(start,end) substr(string,start,length) 2 indexOf(str, fromIndex)  strpos stripos  ,  strstr  stristr  strrpos3 concat(str) (+) (.)4 startsWith 5 endsWith 6 getBytes 7 matches 8 replace str_replace(find, replace, str, count)  ,  str ...
linux版本:uname -ar cpu信息:  cat /proc/cpuinfo mem信息:  cat /proc/meminfo apache日志,过滤IP,并按照IP的次数倒排序 cat 2011-01-05-access.log | awk '{print $1}' | sort | uniq -c | sort -k1,1nr 同理,有于 url, referer, status.code
原来SimpleDateFormat不是线程安全的``
Global site tag (gtag.js) - Google Analytics