11 2005 档案
ORACLE函数大全
摘要:SQL中的单记录函数1.ASCII返回与指定的字符对应的十进制数;SQL> select ascii('A') A,ascii('a') a,ascii('0') zero,ascii(' ') space from dual; A A ZERO SPACE--------- --------- --------- --------- 6...
阅读全文
posted @ 2005-11-08 12:47
Dansin
常用的匹配正则表达式和实例
摘要:匹配中文字符的正则表达式: [\u4e00-\u9fa5]匹配双字节字符(包括汉字在内):[^\x00-\xff]应用:计算字符串的长度(一个双字节字符长度计2,ASCII字符计1)String.prototype.len=function(){return this.replace([^\x00-\xff]/g,"aa").length;}匹配空行的正则表达式:\n[\s| ]*\r匹配HTML...
阅读全文
c#.net常用函数列表 选择自 elfire 的 Blog
摘要: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 日=curre...
阅读全文
使用wse(Web Services Enhancements )把服务器端的文件传到客户端
摘要:(转载博客园)比如说,现在站点A有个附件想传给站点B,我们就可以用WSE来传。在服务器端的webservice文件service1.asmx中写入webmethod:这个是取附件的方法:[WebMethod] public void GetAttachment() { // 获取 SoapContext 作为响应消息 SoapContext myContext = HttpSo...
阅读全文
浙公网安备 33010602011771号