笑傲江湖

My Life and My Way...
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2008年4月12日

摘要: 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 取当前分 int 分=currentTime.Minute; 1.7 取当前秒 int 秒=curre 阅读全文

posted @ 2008-04-12 04:44 Simon.Wong 阅读(125) 评论(0) 推荐(0) 编辑

摘要: 在网上看到这样一个问题:作者用的平台是.NET,用C#在本机开发,在aspx文件中调用 js文件:script language="javascript" src="mymenu.js"/script结果在页面及 alert 提示的中文均为乱码,求解决办法。结果后面跟贴给出一长串的解决办法,其实很简单,在aspx 文件的头部添加一行代码即可:%@ Page ContentType="text/html" ResponseEncoding="gb2312" %很简单吧,呵呵。 阅读全文

posted @ 2008-04-12 04:31 Simon.Wong 阅读(296) 评论(0) 推荐(0) 编辑