专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅
这是些使用频率比较高有来自别人......1.产生随机串function random($length) { $hash = ''; $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz'; $max = strlen($chars) - 1; mt_srand((double)microtime * 1000000); for($i = 0; $i < $length; $i) {  $hash .= $chars[ [阅读全文] [PDF]
1、装箱拆箱 要判断原始类型是否是某个给定原子类型用is;如果要返回个串可以用object类GetType思路方法 2、注意ADONET中数据查询语句中符号格式(c#实现)   a.引号   在查询时出现单引号时应将的替换为两个单引号即name=’K’’Leey’我们在实际操作中当数据查询语句中出现单引号时可以使用String类Replace思路方法进行替换将“’”换成“’’”如   condition=\"name=’\"+tempname.Replace(\ [阅读全文] [PDF]
为了学习方便把C#.net常用和办法集整理了下发出来供大家参考 1、DateTime 数字型 .DateTime currentTime= .DateTime; 1.1 取当前年月日时分秒 currentTime=.DateTime.Now; 1.2 取当前年 年=currentTime.Year; 1.3 取当前月 月=currentTime.Month; 1.4 取当前日 日=c [阅读全文] [PDF]
1、DateTime 数字型 .DateTime currentTime= .DateTime; 1.1 取当前年月日时分秒 currentTime=.DateTime.Now; 1.2 取当前年 年=currentTime.Year; 1.3 取当前月 月=currentTime.Month; 1.4 取当前日 日=currentTime.Day; 1.5 取当前时 [阅读全文] [PDF]
  1、DateTime 数字型   System.DateTime currentTime=new System.DateTime();   1.1 取当前年月日时分秒   currentTime=System.DateTime.Now;   1.2 取当前年   int 年=currentTime.Year;   1.3 取当前月   int 月=currentTime.Month;   1.4 取当前日   int 日=currentTime.Day;   1.5 取当前时   int 时=currentTime.Hour;   1.6 [阅读全文] [PDF]
1 共5条 分1页