一为什么在Rails使用helper方法: 前言:在生成controller文件时的rails app就会顺带生成相应的helper文件。 1、Helper方法指的是可以在template中使用的辅助方法,把输出的资料转化为输出的html字符串; 2、可以是简化template的文件复杂...
分类:
其他好文 时间:
2014-10-12 00:01:37
阅读次数:
282
【转载】iOS中delegate,notification,KVO三种模式实现通信的优缺点 原帖地址:http://blog.csdn.net/yangxt/article/details/8176636在开发iOS中,有三种模式来实现controller之间的通信: 1.委托delegation;...
分类:
移动开发 时间:
2014-10-11 18:40:35
阅读次数:
316
一、Contorl通过目录结构我们可以看到contorllers类的命名方式命名规则:前缀+Controller.在看看contorller中的action方法using System;using System.Collections.Generic;using System.Linq;using ...
分类:
Web程序 时间:
2014-10-11 15:58:05
阅读次数:
188
1.参考mini2440拷贝:linux-3.4.2\arch\arm\mach-s3c24xx\mach-mini2440.c里的/* DM9000AEP 10/100 ethernet controller */ 1 /* DM9000AEP 10/100 ethernet controller...
分类:
系统相关 时间:
2014-10-11 15:51:25
阅读次数:
229
状态栏的字体为黑色:UIStatusBarStyleDefault状态栏的字体为白色:UIStatusBarStyleLightContent一、在info.plist中,将View controller-based status bar appearance设为NO状态栏字体的颜色仅仅由以下的属性...
分类:
移动开发 时间:
2014-10-10 21:12:54
阅读次数:
187
domain的属性类型设置为byte[]1.domain设置classLinkBean{..Stringp_w_picpathName//图片名称byte[]p_w_picpath//图片内容staticmapping={p_w_picpathtype:‘p_w_picpath‘//设置数据库类型}2.controller设置保存之前,先处理上传的文件名//setp_w_picpathfilenameCommonsMultipa..
分类:
其他好文 时间:
2014-10-10 16:04:14
阅读次数:
252
Cloud Foundry核心组件架构图如下:
主要组件:
Cloud Controller:实质上是VMC和STS交互的服务器端,它收到指令后发消息到各模快,管理整个云的运行,相当于Cloud Foundry的大脑。
DEA:负责处理对所部署的App的访问请求,其实质是打包和访问Droplet。其中Droplet是通过Stager组件将提交的源代码及Cloud Foun...
分类:
其他好文 时间:
2014-10-10 15:31:04
阅读次数:
259
Spring MVC从3.0开始支持REST Spring MVC从3.0开始支持REST,主要是通过@PathVariable来处理请求参数和路径的映射.假设在Controller中定义了如下的请求映射 @RequestMapping(value = "/account/{key}") 如果请求路...
分类:
编程语言 时间:
2014-10-10 14:10:14
阅读次数:
200
Jackson.jar的使用记录
之前一直使用json-lib.jar,最近发现网上说这个jackson.jar比较好
package com.spring.controller;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import ja...
分类:
其他好文 时间:
2014-10-10 00:15:06
阅读次数:
393
双向绑定是angularjs亮点之一,在前面的《angularjs培训之helloworld》篇中大概介绍了下双向绑定,现在我们“旧事重提”,先看下下面的代码片段:view中:<inputtype=‘button‘ng-click="set()"value="setValue">
<inputtype="text"ng-model=‘userName2‘>controller..
分类:
Web程序 时间:
2014-10-09 19:19:58
阅读次数:
320