`
luck332
  • 浏览: 84867 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
个性化主页设置,左边是一棵树,左边是一个portal.点击树加载到portal中去,实现了与数据库的交互. ccom.dzf.indexset= function (config){ Ext.apply( this ,config); this .init(); }; Ext.extend(com.dzf.indexset,Ext.util.Observable,{ init: function (){ this .createWin(); }, createWin: function ...
  arguments,callee&caller测试 关键字:arguments,callee,caller arguments:表示传入函数的参数 callee:表示函数和函数主体的语句 caller:表示调用该函数的函数 arguments 该对象代表正在执行的函数和调用它的函数的参数。caller 返回一个对函数的引用,该函数调用了当前函数。 functionName.caller functionName 对象是所执行函数的名称。 说明 对于函数来说,caller属性只有在函数执行时才有定义。如果函数是由顶层调用的,那么 caller包 ...
if object_id('[tbtest]') is not null drop table [tbtest] create table tbtest ( A varchar(10) not null, B varchar(50) not null ) go insert into tbtest select 'A',1 union all select'A',2 union all select'A',3 union all select'B',4 union all select'B',5 union all select'B',6 ...
--测试数据 if object_id('[T]') is not null drop table [T] create table [T] (ID int,PID int,NAME varchar(10)) insert into [T] select 1,0,'A' union all select 2,1,'B' union all select 3,2,'C' union all select 4,0,'D' union all select 5,4,'E' union all select 6,2,'F' union all select 7,3,'G' union ...
package com.dzf.file; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import jav ...

时间处理

    博客分类:
  • java
  首先写了一个公用的转换帮助类 package com.dzf.test; import java.math.BigDecimal; import java.sql.Date; import java.text.DecimalFormat; import java.text.ParseException; import java.text.SimpleDateFormat; public c
Tomcat 的数据库连接池设置与应用 1.以SQL数据库为例,将数据库驱动程序的JAR文件放在Tomcat的 common/lib 中;从http://jakarta.apache.org/commons/dbcp/下载commons-dbcp-1.2.1.zip,将其中的commons-dbcp-1.2.1.jar放到jre/lib/ext和Tomcat 5.5/common/lib里面。 2.在Tomcat 5.5/conf/server.xml的<GlobalNamingResources>中添加: <Resource name=&qu ...
DOM 是 Document Object Model 的缩写,即文档对象模型。前面说过, XML 将数据组织为一颗树,所以 DOM 就是对这颗树的一个对象描叙。通俗的说,就是通过解析 XML 文档,为 XML 文档在逻辑上建立一个树模型,树的节点是一个个对象。我们通过存取这些对象就能够存取 XML 文档的内容。 下面我们来看一个简单的例子,看看在 DOM 中,我们是如何来操作一个 XML 文档的。 这是一个 XML 文档,也是我们要操作的对象: 下面,我们需要把这个文档的内容解析到一个个的 Java 对象中去供程序使用 ...
Sql Server中的日期与时间函数 1.当前系统日期、时间 select getdate() 2. dateadd在向指定日期加上一段时间的基础上,返回新的 datetime 值 例如:向日期加上2天 select dateadd(day,2,'2004-10-15')--返回:2004-10-17 00:00:00.000 3. datediff 返回跨两个指定日期的日期和时间边界数。 select datediff(day,'2004-09-01','2004-09-18') --返回:17 4. datepart 返回代表指定日期的指定日期部分的整 ...
Global site tag (gtag.js) - Google Analytics