当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: Function CheckIDCard(sStr, ByVal
 

 

 ·log4j学习(上)    »显示摘要«
    摘要:csdn上有很多关于log4j的例子和教程,有的写的挺好的,但为了巩固知识,自己也写一份吧。 我对log4j的要求不是很高,主要有两个用途 一) web应用程序中如何使用log4j和common-logging 包; 二) 普通的java应用程序如何使用log4j和common-logging 包; 首先先总结简单的,在普通java应用程序中如何使用log4j和commo......
 ·自己动手编写eclipse扩展点    »显示摘要«
    摘要: 扩展(extension)是eclipse中一个关键的机制,plug-in利用扩展向eclipse平台添加新功能。但是扩展不能随意地创建,必须按照扩展点(extension point)定义的规范进行明确的声明,eclipse才能认出这些扩展。我们不仅可以使用eclipse提供的众多现成的扩展点,而且还可以定义新的扩展点,并在该扩展点上进行扩展。 当然,扩展点的定义比较复杂。不过eclipse为......


身份证号码验证函数
function checkidcard(sstr, byval ddate, byval nsex)

?if isnull(sstr) or sstr = "" then exit function 【程序编程相关:用命令行工具安装服务

?checkidcard = "false" 【推荐阅读:利用ASP+XML自动生成静态HTM

?if not isnumeric(nsex) or nsex = "" then exit function 【扩展信息:WSDL规则与示例(1)

?if not isdate(ddate) or ddate = "" then exit function

?

?dim ore, sdate

?

?set ore??= new regexp

?ore.ignorecase?= true

?ore.global?= true

?

?nsex?= cint(nsex mod 2)

?sdate?= year(ddate) & dblnum(month(ddate)) & dblnum(day(ddate))

?

?select case len(sstr)

??case 8

???if datediff("yyyy", ddate, date()) sdate then exit function

??case 15

???ore.pattern?= "^[\d]{15}$"

???if not ore.test(sstr) then exit function

???if mid(sstr, 7, 6) right(sdate, 6) then exit function

???if cint(mid(sstr, 14, 1)) mod 2 nsex then exit function

??case 18

???ore.pattern?= "^(?:[\d]{18}
...   下一页
 ·daily build实践    »显示摘要«
    摘要:daily build 实践 daily build作为软件开发的最佳实践之一,微软甚至将它称为项目管理的心跳,可见其在软件开发中的重要作用。为什么会有这么高的评价? 除了平常提到的一些显著改进外,主要是因为实现daily build前有一些先决条件,即意味着你至少已经实现下列scm管理: 1. 源代码管理 2. 单元测试 3. 版本管理 4. bug管理 在上述基础......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE