(1)控制器和动作方法的名字不区分大小写。 public static void
RegisterRoutes(RouteCollection routes) { routes.MapRoute("MyRoute",
"{controller}/{...
分类:
其他好文 时间:
2014-05-23 08:52:54
阅读次数:
246
可能是以前记错了,总认为在ios6上使用了UINavigationController或者TabBarController会因为多了bar而影响子controller的view的frame大小。今天在xcode5.1上验证,无论ios6或者7,使用容器controller,产生了的bar都不会对子c...
分类:
移动开发 时间:
2014-05-22 04:28:02
阅读次数:
339
Spring2.5 中除了提供 @Component
注释外,还定义了几个拥有特殊语义的注释,它们分别是:@Repository、@Service 和 @Controller。在目前的Spring版本中,这 3
个注释和 @Component 是等效的,但是从注释类的命名上,很容易看出这 3 个注释...
分类:
编程语言 时间:
2014-05-22 01:39:14
阅读次数:
322
//获取view的controller- (UIViewController
*)viewController { for (UIView* next = [self superview]; next; next =
next.superview) { UIResponder *nextRe...
分类:
移动开发 时间:
2014-05-21 23:38:35
阅读次数:
1000
relation //关联模型什么是MVC //了解 M -Model 编写model类
对数据进行操作 V -View 编写html文件,页面呈现 C -Controller
编写类文件(UserAction.class.php)ThinkPHP的MVC特点 //了解ThinkP...
分类:
Web程序 时间:
2014-05-21 23:30:10
阅读次数:
453
元字符元字符,如\b,.,*,还有\d. 正则表达式里还有更多的元字符,比如\s匹配任意的空白
符,包括空格,制表符(Tab),换行符,中文全角空格等。\w匹配字母或数字或下划线或汉字等。对中文/汉字的特殊处理是由.Net提供的正则表达式引擎支持的,其它环境下的具体情况请查看
相关文档。下面来看看更...
分类:
其他好文 时间:
2014-05-21 23:24:16
阅读次数:
425
键盘各种按键对应的ASII码如下:keycode 8 = BackSpace
BackSpacekeycode 9 = Tab Tabkeycode 12 = Clearkeycode 13 = Enterkeycode 16 =
Shift_Lkeycode 17 = Control_Lkeyco...
分类:
其他好文 时间:
2014-05-21 22:42:32
阅读次数:
182
【题目】
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given [0,1,0,2,1,0,1,3,2,1,2,1], return 6.
The above elevation map is represente...
分类:
移动开发 时间:
2014-05-21 06:44:38
阅读次数:
359
本文是本人在学习网络视屏springMVC的过程中的学习笔记。
为了更便于理解我决定从实际使用的角度解释。
我们在浏览器输入地址
http://localhost:8080/springMVC6/user/data/toUser
界面如下:
此时后台是跳转到下面class的toUser方法的
package com.tgb.web.controller.an...
分类:
编程语言 时间:
2014-05-21 06:27:05
阅读次数:
295
带Render的方法返回值是void,在方法内部进行输出;不带Render的返回值类型为MvcHtmlString,是一个字符串。Partial和RenderPartial:直接加载视图文件内容;Action和RenderAction:重新执行一次Controller→Model→View的顺序,然...
分类:
Web程序 时间:
2014-05-21 05:54:25
阅读次数:
325