`
zyshaw
  • 浏览: 54033 次
  • 性别: Icon_minigender_1
  • 来自: 加興
文章分类
社区版块
存档分类
最新评论
文章列表
shift:删除原数组第一项,并返回删除元素的值;如果数组为空则返回undefined var a = [1,2,3,4,5]; var b = a.shift();     结果 a:[2,3,4,5]     b:1 unshift:将参数添加到原数组开头,并返回数组的长度 var a = [1,2,3,4,5]; var b = a.unshift(-2,-1); 结果 a:[-2,-1,1,2,3,4,5]      b:7 注:在IE6.0下测试返回值总为undefined,FF2.0下测试返回值为7,所以这个方法的返回值不可靠,需要用返回值时可用splice代替本方 ...
http://www.iteye.com/magazines/90
http://www.iteye.com/news/25107
http://baike.baidu.com/view/512788.htm
### set log levels ### log4j.rootLogger = debug ,  stdout ,  D ### ### log4j.appender.stdout = org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target = System.out log4j.appender.stdout.layout = org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern =  %-d{yyyy-MM-dd HH: ...
<insert id="addAlarmLinkage" parameterType="alarmLinkage"> <selectKey keyProperty="id" resultType="int" order="BEFORE"> <![CDATA[ select nextval('tbl_alarm_linkage_id_seq') ]]> </selectKey> <![CDATA[ inser ...
static final int MAXIMUM_CAPACITY = 1 << 30; 最大容易为1<<30;初始化时不能超过这个容易, if (initialCapacity > MAXIMUM_CAPACITY)             initialCapacity = MAXIMUM_CAPACITY; 如果超过则只会初始化1<<30 初始化容量的取得         int capacity = 1;         while (capacity < initialCapacity)             capacity & ...
class Node{     int value;     Node leftNode;     Node rightNode; } class BinaryTree{     Node root;         addNode(Node root,Node node)     {        if(node.value < root.value)        {             Node leftNode = root.getLeftNode();             if(null != leftNode)             {               ...
不需要接口也能代理 实现MethodInterceptor接口的intercept方法 public class TestCglibProxy implements MethodInterceptor {     private Object target;         public Object newProxyObj(Object target)     {         this.target = target;                 Enhancer enhancer = new Enhancer();                 enhancer.setSu ...
java.lang.reflect.Proxy 只能过有接口的类进行代理 建立代代理类的handler ,实现invocationHandler的invoke接口 如: public class TestHandler implements InvocationHandler {     Object target;         public TestHandler(Object obj)     {         // TODO Auto-generated constructor stub         this.target = obj;     }         publ ...
<div id="login">   <div>   <s:form action="testAction" id="form">     <s:textfield name="name" label="姓名" onmouseover="select(this)"></s:textfield>     <s:textfield name="password" label=& ...
BODY{ background:url(../images/login.jpg) no-repeat 40% 30%; } div#login{ display: block; width: 260px; height: 160px; background-color: #F4F6F3; border: solid 1px #CACCC9; margin:30% 10% 20% 60%; } ul.errorMessage{ color: red; padding: 0; margin: 0; list-style: none; } form#form{ dis ...
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation=" h ...
c3p0-0.9.1.2.jar cglib-nodep-2.2.jar commons-fileupload-1.2.2.jar commons-io-2.0.1.jar commons-lang-2.5.jar commons-logging-1.1.1.jar freemarker-2.3.18.jar javassist-3.11.0.GA.jar mybatis-3.0.6-javadoc.jar mybatis-3.0.6-sources.jar mybatis-3.0.6.jar mybatis-spring-1.0.0-RC3.jar ognl-3.0.4.jar org.spr ...
<body style="padding: 0;margin: 0;overflow: hidden;height: 100%">     <table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0" style="table-layout: fixed;">     <tbody>     <tr>     ...
Global site tag (gtag.js) - Google Analytics