- 博客(64)
- 收藏
- 关注
原创 李战《悟透JavaScript》 精彩代码节选(继承)
[code="html"] 李战《悟透JavaScript》 精彩代码节选 function Class(){ var aDefine = arguments[arguments.length - 1];//最后一个参数是类定义 ...
2011-09-09 14:48:42 112
原创 精通正则表达式383页例子展开
[code="java"]import java.util.regex.Matcher;import java.util.regex.Pattern;public class ReplaceString { public static void main(String[] args) { StringBuilder text = new StringBuilder("...
2011-08-26 10:12:41 95
原创 trunc 平常忽视的地方
[code="sql"]--2011/08/24 11:10:07SELECT SYSDATE FROM DUAL;--2011/01/01SELECT TRUNC(SYSDATE, 'YYYY') FROM DUAL;--2011/08/01SELECT TRUNC(SYSDATE, 'MM') FROM DUAL;--2011/08/24SELECT...
2011-08-24 10:17:01 69
原创 DATE小用法
SQL>SQL> CREATE TABLE titles( 2 title_id CHAR(3) NOT NULL, 3 title_name VARCHAR(40) NOT NULL, 4 type VARCHAR(10) NULL , 5 pub_id CHAR(3) NOT NULL,...
2011-08-12 10:41:16 89
原创 炒冷饭之 动态代理
前面把项目中javassist生成过程梳理了一遍,对于最先接触的动态代理也整理下,有机会把asm和cglib也弄弄[code="java"]package com.**.reflect;import java.io.File;import java.lang.reflect.Field;import java.lang.reflect.InvocationHandler...
2011-08-11 12:12:27 84
原创 备份分析用
Compiled from "GreetingImpl$$EnhancedByS2AOP$$110b640.java"public class examples.hotswap.impl.GreetingImpl$$EnhancedByS2AOP$$110b640 extends examples.hotswap.impl.GreetingImpl SourceFile: "Greeti...
2011-08-05 15:51:54 88
原创 Eclipse增加参数调整
-Dcom.sun.management.jmxremote-Dosgi.requiredJavaVersion=1.6-Xverify:none-Xmn128m-Xmx512m-Xms512m-XX:PermSize=128m-XX:MaxPermSize=128m-XX:+DisableExplicitGC-Xnoclassgc-XX:+UseParNe...
2011-08-01 23:46:59 154
原创 getelementsbyclassname[收藏好代码]
[code="js"]/* Developed by Robert Nyman, http://www.robertnyman.com Code/licensing: http://code.google.com/p/getelementsbyclassname/*/ var getElementsByClassName = function (className, tag, ...
2011-07-18 10:22:41 94
原创 Thread 的join的实现中有点迷惑的地方
[code="java"] package test; /** * Created by IntelliJ IDEA. * Date: 11/06/28 * Time: 10:26 */ public class IsThreadPool { public static void main(String[] args) { ...
2011-06-28 11:12:26 80
原创 javassist理解代码
[code="java"]package test;/** * Created by IntelliJ IDEA. * Date: 11/06/23 * Time: 10:48 */public class Day { private String id; public void showId(){ this.setId...
2011-06-23 15:19:31 125
原创 The visitor pattern 例子
[code="java"]/* * Javassist, a Java-bytecode translator toolkit. * Copyright (C) 1999-2007 Shigeru Chiba. All Rights Reserved. * * The contents of this file are subject to the Mozilla Public...
2011-06-22 15:37:30 93
原创 javassist_框架中具体aop实现
[code="java"]/* * Copyright 2004-2010 the Seasar Foundation and the Others. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complian...
2011-06-22 10:34:29 177
原创 AspectWeaver ——javassist具体应用
[code="java"]/* * Copyright 2004-2010 the Seasar Foundation and the Others. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complian...
2011-06-21 13:10:45 318
原创 String
[code="java"] public static String formatMessage(String message, String...params) { if (params == null || params.length == 0) { return message; } StringBuff...
2011-06-10 16:02:41 321
原创 jquery结构
[code="html"] jQuery结构 (function(window){ var XX = (function(){ var XX=functio...
2011-01-20 16:22:28 68
原创 对象调用
[code="html"] Untitled Document var a=function(){ document.write(this instanceof a); document.write(""); document.write(this.constructor ); documen...
2011-01-20 11:41:53 78
原创 javaScript 的 prototype
javaScript 的 prototype当对实例的属性作读操作时,如果是继承自prototype的属性,而且实例中没对它做操作(也就是改变其值),就用prototype的属性值当为写操作时,如果继承自prototype的属性,实例并不会在prototype上对属性作操作,而是会创建一个属性,并对它赋值 方法,从理解上看也没必要每个实例一个副本,因为都是一样的,所以共享pro...
2011-01-19 08:33:15 73
原创 闭包再问
[code="html"] Untitled Document function inspect(inspector,title){ alert(inspector); var expression,result; if("ignore" in arguments.callee) return;...
2011-01-17 23:11:21 76
原创 js 闭包
第一种 var a = {}; uniqueId = (function(){ var id = 0; return function(){ return id++; } })() alert(a.uniqueId()); ...
2011-01-16 21:18:45 59
原创 jdk-1_5_0-src-scsl
http://download.chinaunix.net/download.php?id=24243&ResourceID=12304
2010-09-19 22:37:03 71
原创 java并发资料
http://blog.csdn.net/cutesource/archive/2010/07/31/5778820.aspxhttp://www.360doc.com/content/08/0304/16/7635_1091394.shtml
2010-08-05 19:32:28 61
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人