09 2012 档案

设为首页,加入收藏 兼容各大浏览器
摘要:<a onclick="SetHome(this,window.location)">设为首页</a><a onclick="AddFavorite(window.location,document.title)"> 加入收藏</a> <script type="text/javascript"> function AddFavorite(sURL, sTitle) { try { window.external.addFavorite(sURL, sTitle); } ca 阅读全文

posted @ 2012-09-25 18:24 水行者 阅读(222) 评论(0) 推荐(0) 编辑

日期时间正则表达式
摘要:正则表达式(?n:^(?=\d)((?<day>31(?!(.0?[2469]|11))|30(?!.0?2)|29(?(.0?2)(?=.{3,4}(1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|(16|[2468][048]|[3579][26])00))|0?[1-9]|1\d|2[0-8])(?<sep>[/.-])(?<month>0?[1-9]|1[012])\2(?<year>(1[6-9]|[2-9]\d)\d{2})(?:(?=\x20\d)\x20|$))?(?<time& 阅读全文

posted @ 2012-09-07 17:19 水行者 阅读(1058) 评论(0) 推荐(0) 编辑

jquery获得下拉框的值
摘要:获取Select :获取select 选中的 text : $("#ddlRegType").find("option:selected").text();获取select选中的 value: $("#ddlRegType ").val();获取select选中的索引: $("#ddlRegType ").get(0).selectedIndex;设置select:设置select 选中的索引: $("#ddlRegType ").get(0).selectedIndex=index;//ind 阅读全文

posted @ 2012-09-07 15:24 水行者 阅读(353) 评论(0) 推荐(0) 编辑

.net过滤特定代码
摘要:#region/// 过滤html,js,css代码 /// <summary> /// 过滤html,js,css代码 /// </summary> /// <param name="html">参数传入</param> /// <returns></returns> public static string CheckStr(string html) { System.Text.RegularExpressions.Regex regex1 = new System.Text.RegularExpr 阅读全文

posted @ 2012-09-07 09:32 水行者 阅读(194) 评论(0) 推荐(0) 编辑

51 地图标注接口
摘要:1. 51map 标注接口 实现在地图上标注位置、采集位置信息等操作。说的普通点就是获得地图上某个地方的经纬度和放缩比例 使用这个接口需要引入两段js: <script language="javascript" src="http://api.51ditu.com/js/maps.js"></script> <script language="javascript" src="http://api.51ditu.com/js/ezmarker.js"></script&g 阅读全文

posted @ 2012-09-06 14:02 水行者 阅读(384) 评论(0) 推荐(0) 编辑

未能加载文件或程序集“Interop.Shell32”或它的某一个依赖项。试图加载格式不正确的程序。
摘要:“/”应用程序中的服务器错误。未能加载文件或程序集“Interop.Shell32”或它的某一个依赖项。试图加载格式不正确的程序。 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.BadImageFormatException: 未能加载文件或程序集“Interop.Shell32”或它的某一个依赖项。试图加载格式不正确的程序。 源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用... 阅读全文

posted @ 2012-09-06 10:14 水行者 阅读(1166) 评论(0) 推荐(0) 编辑

今天公司的网站被黑了,很蛋疼
摘要:网站被黑原因:没有做好安全处理,使其所有的数据都可以插入数据库,给黑人们很大空间网站被黑内容:所有的数据都是加了一个莫名其妙的</title><div style=position:absolute;top:-9999px;><a href=http://kickass-books.com >pdf book</a></div>解决方案:把数据库中的带有</title><div style=position:absolute;top:-9999px;><a href=http://kickass-book 阅读全文

posted @ 2012-09-04 12:41 水行者 阅读(216) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示