摘要: Jquery插件代码如下:(function ($) { $.fn.Pager = function (options) { var opts = $.extend({}, $.fn.Pager.Defaults, options); return this.each(function () { var pageCount; //总页数 var recordCount = opts.recordcount; //共多少记录 var currentPage = options.pageindex;... 阅读全文
posted @ 2013-11-11 22:56 xiangxldream 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 程序员有的时候需要给对象字段添加一下特性(如字段描述信息),然后在程序中得到这些信息,c#中特性类使用如下:自定义特性类:(必须派生自System.Attribute特性类) public class discription : System.Attribute { public string discription1; public string discription2; public string discription3; public string discription4; public string discription5; public discription(string 阅读全文
posted @ 2013-06-30 11:20 xiangxldream 阅读(783) 评论(0) 推荐(0) 编辑
摘要: 最近正好做一个WEB中定期执行的程序,而.NET中有3个不同的定时器。所以正好研究研究。这3个定时器分别是://1.实现按用户定义的时间间隔引发事件的计时器。此计时器最宜用于 Windows 窗体应用程序中,并且必须在窗口中使用。System.Windows.Forms.Timer// 2.提供以指定的时间间隔执行方法的机制。无法继承此类。System.Threading.Timer//3.在应用程序中生成定期事件。System.Timers.Timer这三个定时器位于不同的命名空间内,上面大概介绍了3个定时器的用途,其中第一个是只能在Windows窗体中使用的控件。在.NET1.1里面,第3 阅读全文
posted @ 2013-06-26 07:19 xiangxldream 阅读(773) 评论(0) 推荐(0) 编辑