2014年12月20日

摘要: 首先确保你的系统是centos5或者centos6先备份你系统自带的repomv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup切换为root用户cd /etc/yum.repos.d/如果你是ce... 阅读全文

posted @ 2014-12-20 13:32 tabbycat 阅读(278) 评论(0) 推荐(0) 编辑

2014年11月20日

摘要: this是js的一个关键字,随着函数使用场合不同,this的值会发生变化。但是总有一个原则,那就是this指的是调用函数的那个对象。1、纯粹函数调用。function test() { this.x = 1; alert(x); } test();其实这里的this就是全局变量。看下... 阅读全文

posted @ 2014-11-20 15:33 tabbycat 阅读(149) 评论(0) 推荐(0) 编辑

2010年1月24日

摘要: 最近在看ASP.NET MVC的一些示例,发现我看到的所有示例中都使用到了Repository模式,无一例外。  Martin Fowler给这个模式的定义是:通过用来访问领域对象的一个类似集合的接口,在领域与数据映射层之间进行协调。  这个定义比较理论和抽象,根据Respository模式在示例中的实际目的小结一下:  1 Repository模式是架构模式,在设计架构时,才有参考价值;  2R... 阅读全文

posted @ 2010-01-24 23:13 tabbycat 阅读(1860) 评论(0) 推荐(0) 编辑

2010年1月19日

摘要: Building a Contact Management ASP.NET MVC Application (C#) Iteration #7 – Add Ajax Functionality In this series of tutorials, we build an entire Contact Management application from start to f... 阅读全文

posted @ 2010-01-19 00:36 tabbycat 阅读(674) 评论(0) 推荐(0) 编辑

摘要: Building a Contact Management ASP.NET MVC Application (C#) Iteration #6 – Use Test-Driven Development In this series of tutorials, we build an entire Contact Management application from start... 阅读全文

posted @ 2010-01-19 00:34 tabbycat 阅读(446) 评论(0) 推荐(0) 编辑

2010年1月17日

摘要: Visual Studio 2010 已经进入测试阶段,不知道什么时候会正式发布,但有一点可以肯定最终是会发布,呵呵。我看了大致看了一下 Visual Studio 2010带来的一些技术革新,觉得.net 4.0带来的几项技术和.net 2.0一样具有点革命性,不学不行。  以前.net 3.0 和.net3.5的发布的时候,我是抱着用到了再学,用不到不学也没关系的态度,结果一样也没用到,就连想... 阅读全文

posted @ 2010-01-17 23:41 tabbycat 阅读(675) 评论(0) 推荐(0) 编辑