上一页 1 ··· 7 8 9 10 11 12 下一页
摘要: #region Hash算法 /// /// Hash算法 /// /// /// public static string Hash(string myStr) { //建立SHA1对象 SHA1 sha = new ... 阅读全文
posted @ 2015-03-13 14:32 @睦 阅读(1304) 评论(0) 推荐(0) 编辑
摘要: #region URL编码 /// /// URL编码 /// /// 要进行编码的字符串 /// public static string UrlEncode(string str) { StringBuilder sb = new ... 阅读全文
posted @ 2015-03-13 14:31 @睦 阅读(5365) 评论(0) 推荐(0) 编辑
摘要: #region 获取两点(经纬度表示)间的距离 /// /// 获取两点(经纬度表示)间的距离 /// /// 第一点纬度值 /// 第一点经度值 /// 第二点纬度值 /// 第二点经度值 /// public static dou... 阅读全文
posted @ 2015-03-13 14:28 @睦 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 一:背景简介Javascript语言的执行环境是”单线程“(single thread)。所谓”单线程”,就是指一次只能完成一件任务。如果有多个任务,就必须排队,前面一个任务完成,再执行后面一个任务,以此类推。这种模式的好处是实现起来比较简单,执行环境相对单纯;坏处是只要有一个任务耗时很长,后面的任... 阅读全文
posted @ 2015-02-11 15:50 @睦 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 一.插入排序1.算法简介插入排序(Insertion-Sort)的算法描述是一种简单直观的排序算法。它的工作原理是通过构建有序序列,对于未排序数据,在已排序序列中从后向前扫描,找到相应位置并插入。插入排序在实现上,通常采用in-place排序(即只需用到O(1)的额外空间的排序),因而在从后向前扫描... 阅读全文
posted @ 2015-02-11 14:53 @睦 阅读(203) 评论(0) 推荐(0) 编辑
摘要: //方法一:private void GetIP() { string hostName = Dns.GetHostName();//本机名 //System.Net.IPAddress[] addressList = Dns.GetHostByName(hostName).A... 阅读全文
posted @ 2015-01-07 17:34 @睦 阅读(436) 评论(0) 推荐(0) 编辑
摘要: //使用事务来处理多条数据,如果不成功则回滚public void getCheckListSubmit() { string _conStr = "................";//连接字符串 OdbcConnection _odbcCon = new Od... 阅读全文
posted @ 2015-01-07 17:25 @睦 阅读(3061) 评论(0) 推荐(0) 编辑
摘要: /// /// 获取get过来的数据 /// /// /// private static NameValueCollection GETInput(System.Web.UI.Page page) { return page.Reque... 阅读全文
posted @ 2014-12-19 17:15 @睦 阅读(1809) 评论(0) 推荐(0) 编辑
摘要: /// /// 获取post过来的数据 /// /// /// private static string PostInput(System.Web.UI.Page page) { try { System... 阅读全文
posted @ 2014-12-19 17:04 @睦 阅读(2221) 评论(0) 推荐(0) 编辑
摘要: /// /// 判断目录是否存在不存在则创建 /// /// private static void ExitOrCreate(string Path) { if (!Directory.Exists(Path)) { ... 阅读全文
posted @ 2014-12-19 17:01 @睦 阅读(1322) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 下一页