上一页 1 ··· 375 376 377 378 379 380 381 382 383 ··· 387 下一页
摘要: /// <summary> /// 自定义谓词 /// </summary> public class VPredication : IEnumerable<KeyValuePair<string, object>> { Dictionary<string, object> dicv = null; SpacePredication spacePredication = null; /// <summary> /// 区间谓词 /// </summary> public SpacePredication Spa 阅读全文
posted @ 2011-06-01 17:54 张占岭 阅读(596) 评论(2) 推荐(0)
摘要: 列表主页Action内容: public ActionResult HelpList() { Entity.Commons.VPredication vp = new Entity.Commons.VPredication(); Entity.Commons.PagingParam pp = new Entity.Commons.PagingParam(1, 10); Entity.PagedList<Entity.HelpDocument> list = _HelpDocumentServices.GetHelpDocument(vp, pp); List<Entity.H 阅读全文
posted @ 2011-06-01 17:50 张占岭 阅读(2988) 评论(5) 推荐(2)
摘要: 本类继承了IEnumerable接口这后,支持了简单的遍历,方法将内部的消息输出,提供了两种索引器对它进行读取,数值为索引的和字符为索引的.namespace Entity.Commons{ /// <summary> /// 通用消息序列类 /// </summary> public class VMessage : IEnumerable<string> { /// <summary> /// 是否完成 /// </summary> public bool IsComplete { get; set; } /// <summ 阅读全文
posted @ 2011-05-31 16:44 张占岭 阅读(488) 评论(2) 推荐(0)
摘要: ASHX内容: #region IHttpHandler Members public void ProcessRequest(HttpContext context) { context.Response.ContentType = "application/x-javascript"; List<User> list = new List<User>(); for (int i = 0; i < 10; i++) { list.Add(new User { UserName = "zzl" + i, Tel = &quo 阅读全文
posted @ 2011-05-27 16:47 张占岭 阅读(2543) 评论(1) 推荐(0)
摘要: JS扩展方法:通过原型prototype为JS的function扩展一个新的function<script> function Rectangle(width, height) { this.width = width; this.height = height; } //为js的一个function添加一个方法,即我们通过原型prototype为一个class添加一个method Rectangle.prototype.adds = function (rec) { if (rec instanceof Rectangle) { return (rec.width*rec.hei 阅读全文
posted @ 2011-05-26 18:04 张占岭 阅读(434) 评论(0) 推荐(0)
上一页 1 ··· 375 376 377 378 379 380 381 382 383 ··· 387 下一页