文章分类 -  各种方法

地图坐标转换器
摘要:1 public static class MapConvertercs 2 { 3 //WGS-84原始坐标系 4 //GCJ-02:高德、Google 5 //BD-09:百度 6 7 8 /// <summary> 9 /// 圆周率 10 /// </summary> 11 private 阅读全文

posted @ 2020-06-09 16:56 高达 阅读(723) 评论(0) 推荐(0)

sqlserver字符串拆分(split)方法汇总 https://www.cnblogs.com/aierong/archive/2008/11/19/sqlserver_split.html
摘要:sqlserver字符串拆分(split)方法汇总 --方法0:动态SQL法declare @s varchar(100),@sql varchar(1000)set @s='1,2,3,4,5,6,7,8,9,10'set @sql='select col='''+ replace(@s,',', 阅读全文

posted @ 2018-04-17 22:35 高达 阅读(254) 评论(0) 推荐(0)

C# 字符/字母与ASCII码相互转换
摘要:1.将单个字符的字符串转化成ASCII码字符串 string str1="a"; byte[] array = System.Text.Encoding.ASCII.GetBytes(str1); int asciicode = (int)(array[0]); string ASCIIstr1= 阅读全文

posted @ 2017-09-04 21:39 高达 阅读(6050) 评论(0) 推荐(0)

MatchEvaluator应用 替换
摘要:1 public static void MatchEvaluator() 2 { 3 string str = ""; 4 string pattern = "'|&|"; 5 Regex regex = new Regex(pattern); 6 MatchEvalu... 阅读全文

posted @ 2017-09-02 12:25 高达 阅读(213) 评论(0) 推荐(0)

提示上传字符串存在安全问题处理
摘要:当我们在前台提交如:<p></p>这些有可能被服务器认为有可能危及安全时会报错 这时候我们要在前台提交时把数据包装下 第一步:前台包装数据:使用: var str="aafafd<p>/</p>"; var contents = encodeURI(str); 第二步:后台解包装: 使用 strin 阅读全文

posted @ 2017-03-08 11:26 高达 阅读(114) 评论(0) 推荐(0)

jquery如何判断滚动条滚到页面底部并执行事件
摘要:首先理解三个dom元素,分别是:clientHeight、offsetHeight、scrollTop。 clientHeight:这个元素的高度,占用整个空间的高度,所以,如果一个div有滚动条,那个这个高度则是不包括滚动条没显示出来的下面部分的内容。而只是单纯的DIV的高度。 offsetHei 阅读全文

posted @ 2017-03-03 10:01 高达 阅读(100) 评论(0) 推荐(0)

Download 下载文件方法
摘要:1 public class Download 2 { 3 4 private static ILog log = LogManager.GetLogger(typeof(ConfigManager)); //readonly 5 6 7 public Download() 8 { 9 ... 阅读全文

posted @ 2016-09-14 15:21 高达 阅读(1334) 评论(0) 推荐(0)

获取当前路径方法集合
摘要:string s = AppDomain.CurrentDomain.BaseDirectory; D:\\NewWhere\\NewWhere\\NewWhere\\OA\\ 阅读全文

posted @ 2016-09-13 20:31 高达 阅读(104) 评论(0) 推荐(0)

根椐ifrmae对象获取IFRAME的window.document
摘要:top.iframePageMaster.contentWindow =window.document 相当于获取了ID为iframePageMaster对象 阅读全文

posted @ 2016-08-31 22:53 高达 阅读(91) 评论(0) 推荐(0)

JValidator.js
摘要:/* jquery 表单验证使用实例! */ //获取Request notnull function isRequestNotNull(obj) { obj = $.trim(obj); if (obj.length == 0 || obj == null || obj == undefined) { return true; } else ... 阅读全文

posted @ 2016-07-04 22:31 高达 阅读(459) 评论(0) 推荐(0)

@html.ActionLink的几种参数格式
摘要:一 Html.ActionLink("linkText","actionName")该重载的第一个参数是该链接要显示的文字,第二个参数是对应的控制器的方法,默认控制器为当前页面的控制器,如果当前页面的控制器为Products,Html.ActionLink("all","Detail")则会生成 a... 阅读全文

posted @ 2015-09-10 17:56 高达 阅读(132) 评论(0) 推荐(0)

用DOS命令安装删除服务02
摘要:用DOS命令安装删除服务2012-01-10 14:11:36标签:windows职场服务休闲原创作品,允许转载,转载时请务必以超链接形式标明文章原始出处、作者信息和本声明。否则将追究法律责任。http://jafy00.blog.51cto.com/2594646/761118安装服务sc cre... 阅读全文

posted @ 2015-06-06 23:15 高达 阅读(161) 评论(0) 推荐(0)

用DOS命令安装删除服务
摘要:用DOS命令安装删除服务安装服务sc create Svnservice binpath= "d:\subversion\bin\svnserve.exe --service -r E:\projectversion" displayname= "Svnservice" depend= Tcpip删... 阅读全文

posted @ 2015-06-06 22:40 高达 阅读(460) 评论(0) 推荐(0)

js 对象的申明方式
摘要: 阅读全文

posted @ 2015-05-25 15:59 高达 阅读(204) 评论(0) 推荐(0)

string各种方法的应用
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 测试 8 { 9... 阅读全文

posted @ 2015-05-12 20:49 高达 阅读(120) 评论(0) 推荐(0)

导航