- 博客(6)
- 收藏
- 关注
转载 $stateParams 参数传递详解
$stateParams 详解 如何传递参数(参考 http://www.cnblogs.com/jager/p/5293225.html)首先,要在目标页面定义接受的参数:传参,ui-sref:$state.go: 接收参数,在目标页面的controller里注入$stateParams,然后 "$stateParams.参数名" 获取...
2018-09-25 20:15:25 2417
转载 ng-view用法
AngularJS支持通过在单个页面上的多个视图的单页应用。要做到这一点AngularJS提供ng-view 和 ng-template指令,以及 $routeProvider 服务。https://blog.csdn.net/u010006309/article/details/52779869http://www.runoob.com/angularjs/angularjs-routi...
2018-09-25 10:54:55 5401
转载 @Autowired的使用:推荐对构造函数进行注释
在编写代码的时候,使用@Autowired注解是,发现IDE报的一个警告,如下: Spring Team recommends “Always use constructor based dependency injection in your beans. Always use assertions for mandatory dependencies”. 翻译: Spr...
2018-09-19 17:01:52 354
原创 Spring注入依赖
引用spring的官方文档中的一段描述:在Spring2.0之前的版本中,@Repository注解可以标记在任何的类上,用来表明该类是用来执行与数据库相关的操作(即dao对象),并支持自动处理数据库操作产生的异常在Spring2.5版本中,引入了更多的Spring类注解:@Component,@Service,@Controller。@Component是一个通用的Spring容器管理的...
2018-09-19 16:13:56 293
原创 angular html tr td th
表格demo解释:https://blog.csdn.net/qq_26626113/article/details/53069447<table>是<tr>的上层标签<tr>必须在一个<table></table>里面,它不能单独使用,相当于<table>的属性标签. < table>标示一个表格,&a
2018-09-19 14:11:13 635
原创 无法从静态上下文中引用非静态变量
non-static variable mainframe cannot be referenced from a static context即在静态方法中不能引用非静态变量为什么?因为我们知道静态的方法可以在没有创建实例时使用,而申明为非静态的成员变量是一个对象属性,它只有在对象存在时引用,因此如果在对象未创建实例时我们在静态方法中调用了非静态成员方法自然是非法的,所以编译器会在这种时...
2018-09-14 10:06:55 772 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人