上一页 1 ··· 369 370 371 372 373 374 375 376 377 ··· 382 下一页
摘要: 我们知道C#里有继承,类也有扩展方法,而在JS世界有是否也有相似的概念和功能实现呢,答案是肯定的,现在我来和大家一起聊聊这方面的知识吧!:P <script type="text/javascript"> // 注意,prototype只对本script段起作用 // prototype原型关键字,为一个JS原对象扩展一个方法 Array.prototype.max = function() { var i, min = this[0]; for (i = 1; i < this.length; i++) { if (min > this[i]) m 阅读全文
posted @ 2011-06-03 12:02 张占岭 阅读(7905) 评论(0) 推荐(1)
摘要: 怎么去解决?事实上它是由于网站没有启用匿名账号的原因,看我是如何修改的OK,把这个选项勾上就可以了,哈哈! 阅读全文
posted @ 2011-06-02 16:08 张占岭 阅读(291) 评论(0) 推荐(0)
摘要: /// <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 张占岭 阅读(595) 评论(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 张占岭 阅读(2986) 评论(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 张占岭 阅读(485) 评论(2) 推荐(0)
上一页 1 ··· 369 370 371 372 373 374 375 376 377 ··· 382 下一页