QQ交流群:110826636

07 2015 档案

摘要:AngularJs的路由是一个组件,需要自己额外添加,在目录/src/ngRoute中三个文件route.js,routeParams.js,ngView.js Angular JS Views AngularJS Sample Application Add Student... 阅读全文
posted @ 2015-07-20 15:39 FourOne 阅读(242) 评论(0) 推荐(0)
摘要:Angular JS Views AngularJS Sample Application Add Student View Students 阅读全文
posted @ 2015-07-20 15:39 FourOne 阅读(193) 评论(0) 推荐(0)
摘要:$dirty:规定值已被改变$invalid:该值的状态是无效的$error:指出确切的错误$dirty 和 $invalid标志做验证的方式。使用novalidate表单声明禁止任何浏览器特定的验证ng-include:载入html的片段ng-vi... 阅读全文
posted @ 2015-07-20 15:27 FourOne 阅读(198) 评论(0) 推荐(0)
摘要:学习地址http://www.yiibai.com/angularjs/angularjs_environment.htmlhttp://docs.angularjs.cn/api/ng/filter/filter 指令集合 ng-app:设定作用域ng-model:设定模型变量ng-contro... 阅读全文
posted @ 2015-07-17 17:09 FourOne 阅读(418) 评论(1) 推荐(0)
摘要:1.一个主名,一个别名,设计时候属性和字段命名不同。这样主名和别名都可以用的,在主名与别人重复时候用别名(别名可以设计的明确一点长一点,比如类名和字段结合)2.或者找一个字段多的直接继承出一个复合类出来去接收 阅读全文
posted @ 2015-07-14 08:40 FourOne 阅读(1942) 评论(1) 推荐(0)
摘要:MVC控制器C完美分离(有脚手架辅助)1.第一步:建立一个web项目和Controllers的类库,引用必要的dll,然后生成,之后去找到他的目录,找到.csproj后缀的文件,然后在找到web项目中的.csproj文件。接着打开web下面的.csproj文件找到ProjectTypeGuids节点... 阅读全文
posted @ 2015-07-13 10:29 FourOne 阅读(506) 评论(4) 推荐(1)
摘要:[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class, Inherited = true, AllowMultiple = true)] public class PowerAttribute : FilterAttr... 阅读全文
posted @ 2015-07-07 09:14 FourOne 阅读(1266) 评论(4) 推荐(3)
摘要:基本都是采用pure设计(中文官网:http://purecss.org,英文官网:http://purecss.io)。pure只是一个简单强大的cssUI库,支持响应式设计,适合自己设计或者给美工设计,定制强大。当然,脚本还是得自己写。pure参考文章:http://www.cnblogs.co... 阅读全文
posted @ 2015-07-06 09:04 FourOne 阅读(808) 评论(0) 推荐(0)
摘要:public class BaseRepository:IBaseRepository where T : class { protected EfConnection DbContext = ContextFactory.GetCurrentContext(); ... 阅读全文
posted @ 2015-07-03 08:37 FourOne 阅读(623) 评论(0) 推荐(0)
摘要:先从数据库开始,因为是用EF的code frist,所以所有的设计都在解决项目中进行。先是数据模型开始我已经建立了四个模型,user,role,action,actiongroupuser里面有role,role中的ActionIds存储action的id组合字符串,actiongroup作为act... 阅读全文
posted @ 2015-07-02 08:44 FourOne 阅读(859) 评论(6) 推荐(1)
摘要:环境:EF6.0.0.0+Autofac3.5.0.0+MVC4.0+pure6.0+Jquery IDE:vs2012,数据库:vs2008r2搭建环境如下:我给它取名字为cactus:仙人球,我喜欢的一种植物。UML图如下(https://www.processon.com提供)360云分享项目... 阅读全文
posted @ 2015-07-01 22:05 FourOne 阅读(1063) 评论(11) 推荐(2)