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

最新标签
网站地图
文章索引
Rss订阅
  1、DateTime 数字型  .DateTime currentTime= .DateTime;   1.1 取当前年月日时分秒  currentTime=.DateTime.Now;   1.2 取当前年   年=currentTime.Year;   1.3 取当前月   月=currentTime.Month;   1.4 取当前日   日=currentTime.Day;   1.5 取当前时   时=currentTime.Hour;   1.6 取当前分   分=currentTime.Minute;   1.7 取当前秒   秒=curr [阅读全文] [PDF]
这是些使用频率比较高有来自别人......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]
13.2 Cookies   PHP支持基于HTTP的cookies。在需要时你可以像使用一般变量一样方便的使用cookie。Cookies是浏览器保存于客户端的一些信息片段,由此你可以知道是否一台特定PC上的任何人都访问过你的站点,浏览者者在你的站点上的踪迹等等。使用cookies的典型例子就是对浏览者偏好的甄别。Cookies由函数setcookie()设定。与输出HTTP标头的函数header()一样,setcookie()必须在任何实际内容杯输出到浏览器之前调用。以下是一个简单例子: <? if (empty($VisitedBefore)) { // 如果没有设定cookie [阅读全文] [PDF]
1、装箱拆箱 要判断原始类型是否是某个给定原子类型用is;如果要返回个串可以用object类GetType思路方法 2、注意ADONET中数据查询语句中符号格式(c#实现)   a.引号   在查询时出现单引号时应将的替换为两个单引号即name=’K’’Leey’我们在实际操作中当数据查询语句中出现单引号时可以使用String类Replace思路方法进行替换将“’”换成“’’”如   condition=\"name=’\"+tempname.Replace(\ [阅读全文] [PDF]
1、DateTime数字型 .DateTimecurrentTime=.DateTime; 1.1取当前年月日时分秒 currentTime=.DateTime.Now; 1.2取当前年 年=currentTime.Year; 1.3取当前月 月=currentTime.Month; 1.4取当前日 日=currentTime.Day; 1.5取当前时 时=currentTime.Hour; 1.6取当前分 分=currentTime.Minute; 1.7取当前 [阅读全文] [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 共8条 分1页