上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: 1 function CT() { 2 } 3 CT.prototype.P = "TTT"; 4 CT.Test = function () { 5 alert(arguments[0]); 6 }... 阅读全文
posted @ 2013-10-23 16:55 自然去留 阅读(520) 评论(0) 推荐(0)
摘要: 1 /// 2 /// 文件分割方法 3 /// 4 /// 要分割的文件 5 /// 目标目录 6 /// 分割后的小文件名 7 public void SplitFile(str... 阅读全文
posted @ 2013-10-21 21:23 自然去留 阅读(277) 评论(0) 推荐(0)
摘要: 1 public class CustomDataContext : System.Data.Linq.DataContext 2 where TEntity : class,new() 3 { 4 public CustomDataContext(... 阅读全文
posted @ 2013-08-15 17:58 自然去留 阅读(182) 评论(0) 推荐(0)
摘要: 1 public class ChnToPh 2 { 3 //定义拼音区编码数组 4 private static int[] getValue = new int[] 5 { 6 -20319,-20317,-20304,-20... 阅读全文
posted @ 2013-08-06 10:35 自然去留 阅读(477) 评论(0) 推荐(0)
摘要: /// 〈summary〉 /// 汉字转拼音缩写 /// 〈/summary〉 /// 〈param name="str"〉要转换的汉字字符串〈/param〉 /// 〈returns〉拼音缩写〈/returns〉 public string GetPYString(string str) { ... 阅读全文
posted @ 2013-08-06 10:05 自然去留 阅读(728) 评论(0) 推荐(0)
摘要: 1 public static void ExportToExcel(DataSet source, string fileName) 2 { 3 System.IO.StreamWriter excelDoc = new System... 阅读全文
posted @ 2013-07-28 10:15 自然去留 阅读(315) 评论(0) 推荐(0)
摘要: 1 public class ChineseCalendarException : Exception2 {3 public ChineseCalendarException(string msg)4 : base(msg)5 ... 阅读全文
posted @ 2013-07-21 16:46 自然去留 阅读(552) 评论(0) 推荐(0)
摘要: 安装后MYSQL5后,发现启动出错,有时启动正常,但加接时马上出错。出错代码:1067解决办法如下: 删除%windows%/my.ini 删除其它地方的my.ini 在mysql安装目录下把my-small.ini复制为my.ini 在my.ini最后一行插入: CODE: [mysqld] #设... 阅读全文
posted @ 2013-07-11 15:15 自然去留 阅读(247) 评论(0) 推荐(0)
摘要: public string getCpuInfo() //读取CPU信息 { ManagementClass mobj = new ManagementClass("Win32_Processor"); ManagementO... 阅读全文
posted @ 2013-06-30 21:28 自然去留 阅读(287) 评论(0) 推荐(0)
摘要: 引用命名空间:using System.Net;//网络功能 using System.IO;//流支持using System.Threading;//线程支持定义线程下载主体: 1 public class threadbody 2 { 3 Progra... 阅读全文
posted @ 2013-06-21 12:34 自然去留 阅读(515) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 下一页