<script /* 功能:YYYY-MM-DD 数字日期转化为汉字 例:1984-3-7 - 一九八四年三月七日 调用:baodate2chinese("1984-3-7") */ var chinese = ['零','一','二','三','四','五','六','七','八','九']; var len = ['十']; var ydm =['年','月','日']; function num2chinese(s) { //将单个数字转成中文. &nb...[ 查看全文 ]
使用JS是可以让函数不直接执行的,而是在过了一个指定的时间间隔后才执行。这就叫做事件事件。 With JavaScript, it is possible to execute some code NOT immediately after a function is called, but after a specified time interval. This is called timing eve...[ 查看全文 ]
环境:Win2000,vb.net 2002,.net framework 1.0,sql server 2000 在默认情况下DATAGRID显示的SQL SERVER 2000中的日期时间列时,只显示了日期部分,下法可显示长日 期格式(yyyy-mm-dd hh:mm:ss) Dim myDataGridTableStyle As New DataGridTableStyle() myD...[ 查看全文 ]
首先在服务器端先创建一个程序可以生成XML文件,以返回客户端,(getfolder.asp) <% 'written by Linzhang Chen ,2003-4-20 ' 转载请注明出处和保留此版权信息 response.write "<?xml version=""1.0"" encoding=""GB2312""?"&chr(13) response.write "<mediafile"&chr(13) folders=request("folder") if folders="/" then folders="" end if dim count count=0 folders=replace(...[ 查看全文 ]
1.校验日期 <script language=javascript function isDate(str) { var r = str.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/); if(r==null)return false; var d = new Date(r, r-1, r); return (d.getFullYear()==r&&(d.getMonth()+1)==r&&d.getDate()==r); } alert(isDate("2002-01-31")); alert(isDate("2002-01-41")); </script 2.校验日期加时间 <script language=javasc...[ 查看全文 ]
% 'written by Linzhang Chen ,2003-4-20 ' 转载请注明出处和保留此版权信息 response.write "?xml version=""1.0"" encoding=""GB2312""?"&chr(13) response.write "mediafile"&chr(13) folders=request("folder") if folders="/" then folders="" end if dim count count=0 folders=replace(folders,"..","") basefolder="../media/"'基准的文件夹路径 newfolder=basefolder&folders Set fso =server.Cre...[ 查看全文 ]