代码改变世界

阅读排行榜

Lambda的应用(转载)

2010-12-14 22:26 by 爱研究源码的javaer, 252 阅读, 收藏,
摘要: /// summary /// 获取配置文件中DappSettings节点下指定索引键的Int类型的的值 /// /summary /// param name="key"索引键/param /// param name="defaultValue"默认值/param /// returnsInt/returns private static int getInt32(string key, int? defaultValue) { return getValueint(key, (v, pv) = int.TryParse(v, out pv), def 阅读全文

Jquery插件按开发学习笔记(一)

2010-11-23 16:55 by 爱研究源码的javaer, 251 阅读, 收藏,
摘要: 1.在JQuery命名空间内声明一个特定的命名; 2.接收参数来控制插件的行为; 3.提供公有方法访问插件的配置项值; 4.提供公有方法来访问插件中其他的方法(如果可能的话); 5.保证私有方法是私有的; 6.支持元数据插件; 下面,我将逐一讲述上面的内容,并在同时给出相关的简单插件开发代码。 1.在JQuery命名空间内声明一个特定的命名 这 意味着开发的是一个单一命名的插件脚本... 阅读全文

动态添加样式(转载)

2010-05-23 12:59 by 爱研究源码的javaer, 248 阅读, 收藏,
摘要: function addCSS(content) { $('<style type="text/css">' + content + '</style>').appendTo("head"); } $(function() { addCSS("body { background-color: #ccc; }"); });var ss1 = document.createEl... 阅读全文

C#操作XML

2010-02-02 16:19 by 爱研究源码的javaer, 247 阅读, 收藏,
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--System.Xml.XmlDocumentxmlDoc=newSystem.Xml.XmlDocument();xmlDoc.Load(Application.StartupPath+"\\"+"D... 阅读全文

Function in loop and closure(转载)

2010-03-18 14:09 by 爱研究源码的javaer, 245 阅读, 收藏,
摘要: This article describe the famious issue “function in loop and closure” in JavaScript.The root cause is loop statements (such as for, while) don’t have their own scope.Let’s see... 阅读全文
上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 66 下一页