http://demo.netfoucs.com/cpj_phone/article/details/40979771FSMC(STM32)分类:4.Cortex_M|2014-11-10 13:39 |256人阅读(一)FSMC:Flexible Static Memory Controller,...
分类:
其他好文 时间:
2014-12-14 14:30:28
阅读次数:
194
实现了MVC思想的struts框架,主要分三层结构,即:view->controller->model,三者互相传递数据,实现了数据在前台和后台的转换,验证,展示,存储。
搭建struts框架的步骤如下:
1.在myeclipse中新建Java项目,删除项目中的源文件src,建立普通文件,将Struts解压后的jar包复制在新建的普通文件夹中。
2.新建we...
分类:
其他好文 时间:
2014-12-14 10:44:12
阅读次数:
206
Adding a Table View Controller连接到tab bar controller中的两个窗口都是regular UIViewControllers.你将使用UITableViewController来替换第一个tab选择第一个view controller然后delete它。拖...
分类:
其他好文 时间:
2014-12-13 17:49:34
阅读次数:
352
Storyboarding 是在ios 5时候引进入的一个非常出色的特性。节省了为app创建user interfaces的时间。如果你的app有多个屏幕storyboards可以帮助你降低代码的粘合度。比如从一个屏幕进入到另外一个屏幕。不会为每一个view controller使用单独的nib文件...
分类:
其他好文 时间:
2014-12-13 16:24:57
阅读次数:
277
- (BOOL)textFieldShouldReturn:(UITextField *)textField{ // !!!要执行此代理方法,需要在Storyboard中,将文本框的代理设置给Controller // 目的是在文本框上按下回车键时,由Controller来做进一步的处理...
分类:
其他好文 时间:
2014-12-13 14:56:41
阅读次数:
157
利用play.api.mvc.Security的机制,实现一个trait,用于扩展controller的用户认证机制。
该trait需要实现的方法包括:
1. def username(request: RequestHeader) = request.session.get("email")
2. def onUnauthorized(request: RequestHeade...
分类:
其他好文 时间:
2014-12-12 20:57:31
阅读次数:
152
package com.sishuok.mvc.controller; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Aut...
分类:
编程语言 时间:
2014-12-12 19:28:06
阅读次数:
205
今天开始研究rails路由基本用法资源路由resources:members配置资源路由后,自动生成默认的7个动作动作地址controller中方法作用index/membersindex显示列表show/members/:idshow显示详情new/members/newnew,方法中要声明对象进入新建表单页create/memberscreate创建edit/membe..
分类:
其他好文 时间:
2014-12-12 19:23:29
阅读次数:
191
1. Configure network with a static ip address$sudo nano /etc/network/interfacesauto eth0iface eth0 inet staticaddress 192.168.0.35gateway 192.168.0.1n...
分类:
系统相关 时间:
2014-12-12 14:35:54
阅读次数:
316
发现问题在Controller类方法上加@ResponseBody,直接返回字符串,结果乱码。如下所示:MockHttpServletResponse: Status = 200 Error message = null Headers = {Content-Type=[text/plain;cha...
分类:
编程语言 时间:
2014-12-12 14:31:25
阅读次数:
221