mephisto’blog

二人行,也有吾师!
Fork me on GitHub
摘要: public string RandomNum(int n) { string strchar = "0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z"; string[] VcArray = strcha... 阅读全文
posted @ 2007-09-21 11:10 sinodzh 阅读(387) 评论(1) 推荐(0) 编辑
摘要: 在做项目时常常用到判断电话号码的正则表达式,写了一个,可验证如下27种格式: 阅读全文
posted @ 2007-08-03 14:14 sinodzh 阅读(5521) 评论(7) 推荐(0) 编辑
摘要: 最近做了个项目,样式是用CSS控制,发现在使用了response.write后样式发生了变化,位置和字体都不正确。Response.Write("")这种用法也是这样,2003中没有这种情况 阅读全文
posted @ 2007-07-28 16:46 sinodzh 阅读(614) 评论(2) 推荐(0) 编辑
摘要: 三种常用的字符串判空串方法:Length法:bool isEmpty = (str.Length == 0);Empty法:bool isEmpty = (str == String.Empty);General法:bool isEmpty = (str == "");实践证明用Length方法判空... 阅读全文
posted @ 2007-07-02 10:12 sinodzh 阅读(536) 评论(0) 推荐(0) 编辑
摘要: sql数据类型 阅读全文
posted @ 2007-06-26 13:53 sinodzh 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 本文以最浅显得道理阐述经济的原理,进而阐述经济的真相。不会有任何所谓的学术妓 女们常用来欺骗人民的深奥的学术理论,还事实以清白,真相只有一个,让我们擦亮眼睛,洞观今天发生的一切。 阅读全文
posted @ 2007-06-19 15:53 sinodzh 阅读(352) 评论(1) 推荐(0) 编辑
摘要: 使用JS实现倒计时功能 阅读全文
posted @ 2007-06-08 16:37 sinodzh 阅读(434) 评论(1) 推荐(0) 编辑
摘要: 一、简介 正则表达式这个名词,相信很多人都听说过,这个名词最早起源于1956 年, 一位叫 Stephen Kleene 的美国数学家在 McCulloch 和 Pitts 早期工作的基础上,发表了一篇标题为“神经网事件的表示法”的论文,引入了正则表达式的概念。正则表达式就是用来描述他称为“正则集的代数”的表达式,因此采用“正则表达式”这个术语 阅读全文
posted @ 2007-06-06 13:42 sinodzh 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 正则表达式(一个字符串翻转的例子) Exam1:把"abcd"翻为"dcba" 阅读全文
posted @ 2007-06-06 13:41 sinodzh 阅读(863) 评论(0) 推荐(0) 编辑
摘要: 有一天,柏拉图问他的老师什么是爱情,他的老师就叫他先到麦田里,摘一棵全麦田里最大最金黄的的麦穗。期间只能摘一次,并且只可以向前走,不能回头。 阅读全文
posted @ 2007-06-01 15:43 sinodzh 阅读(596) 评论(2) 推荐(0) 编辑