上一页 1 ··· 348 349 350 351 352 353 354 355 356 ··· 361 下一页
摘要: Jquery简化了传统JS实现功能的代码量,例如:jquery的$(function(){});相当于传统JS的window.onload=function(){};还是看一下我写的代码吧:<script type="text/javascript"> window.onload = function() { //定义一个类对象 var Zhang = { Title: "", Width: "100", Height: "", Zhang: function(title, width, height) 阅读全文
posted @ 2011-06-03 12:05 张占岭 阅读(2605) 评论(0) 推荐(0) 编辑
摘要: 我们知道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 张占岭 阅读(7888) 评论(0) 推荐(1) 编辑
摘要: 怎么去解决?事实上它是由于网站没有启用匿名账号的原因,看我是如何修改的OK,把这个选项勾上就可以了,哈哈! 阅读全文
posted @ 2011-06-02 16:08 张占岭 阅读(279) 评论(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 张占岭 阅读(579) 评论(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 张占岭 阅读(2970) 评论(5) 推荐(2) 编辑
上一页 1 ··· 348 349 350 351 352 353 354 355 356 ··· 361 下一页