上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 29 下一页
摘要: http://www.itellyou.cn/ 阅读全文
posted @ 2016-03-16 07:56 lunawzh 阅读(156) 评论(0) 推荐(0) 编辑
摘要:   我在对腾讯地图上的覆盖物添加事件时发现一个奇怪的现象,对地图中所有的覆盖物循环添加click事件,事件中函数调用循环变量i,但click时发现显示的都是循环的最后一个值, 原因是当创建的侦听器,则 i 确实有正确的值,但是当其执行时,它需要的最后一个状态 i  的情况,解决问题其实很简单,创建一 阅读全文
posted @ 2016-03-14 08:07 lunawzh 阅读(11911) 评论(3) 推荐(3) 编辑
摘要: http://developer.baidu.com/map/jsdemo.htm#a1_2 http://www.open-open.com/lib/view/open1337224207697.html http://lbs.qq.com/javascript_v2/doc/marker.htm 阅读全文
posted @ 2016-03-10 16:13 lunawzh 阅读(176) 评论(0) 推荐(0) 编辑
摘要: http://www.jjsp.gov.cn:8888/js/jbox-v2.3/jbox-demo2.html 阅读全文
posted @ 2016-03-04 13:05 lunawzh 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 对于网站来讲,不能把异常信息显示给用户,异常信息只能记录到日志,出了问题把日志文件发给开发人员,就能知道问题所在。 下面演示网站 出错后自动添加出错日志的实例 (1)新建一个WebApplication(2)添加对log4net.dll的引用 (3)在Web.Config (或App.Config) 阅读全文
posted @ 2016-03-03 08:19 lunawzh 阅读(286) 评论(0) 推荐(0) 编辑
摘要: namespace System.Web.Mvc{ public static class MyHttpHelperExt { public static string MyLabel(this HtmlHelper helper, string txt) { return string.Forma 阅读全文
posted @ 2016-03-02 20:23 lunawzh 阅读(181) 评论(0) 推荐(0) 编辑
摘要: XmlHelper是一个工具类 public static class XMLHelper { /// <summary> /// XML的编码方式,默认是UTF-8 /// </summary> public static Encoding xmlEncode; /// <summary> /// 阅读全文
posted @ 2016-03-01 08:31 lunawzh 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 一般我们在asp.net中使用HttpContext.Current.Request.MapPath或者 HttpContext.Current.Server.MapPath来获取文件的绝对路径, public Class1() { string file = HttpContext.Current 阅读全文
posted @ 2016-03-01 08:27 lunawzh 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 设想网站后台每秒自动更新一下Cache["test"]中的值,通过这个实现就可以完成一些在间隔多少时间更新一下数据库的操作。 1、定义一个事件类BMAEvent,在Processor方法中添加间隔1秒更新一次Cache: public class BMAEvent { private static 阅读全文
posted @ 2016-02-29 17:38 lunawzh 阅读(2333) 评论(0) 推荐(0) 编辑
摘要: 刚学到asp.net怎么缓存,这里推荐学习一下 www.cnblogs.com/wang726zq/archive/2012/09/06/cache.html http://blog.csdn.net/sundacheng1989/article/details/10001315 以下是键值缓存依赖 阅读全文
posted @ 2016-02-26 10:05 lunawzh 阅读(220) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 29 下一页