1、方式一:表单提交:在此方式中需要置顶表单的action属性,将提交按钮的type属性改为submit。如下:
form name="userForm" target="_self" id="userForm"
action=“#” method=“post”>
input name="userName" type="text" class...
分类:
其他好文 时间:
2015-05-30 09:21:53
阅读次数:
120
1、如果要在模板中输出变量,必须在在控制器中把变量传递给模板,系统提供了assign方法对模板变量赋值,无论何种变量类型都统一使用assign赋值,而且assign方法必须在display和show方法之前调用。$array['name'] = 'thinkphp';$array['em...
分类:
Web程序 时间:
2015-05-30 09:19:10
阅读次数:
132
/**Cookie 读写类 读:Cookie.get(name) 写:Cookie.set(name, value, domain, ttl/*是否持久* /) 删除: Cookie.clear(name) 绑定Cookie变化事件 Cookie.change(functio...
分类:
其他好文 时间:
2015-05-30 09:18:10
阅读次数:
145
选中你要加注释的方法或类,按 Alt + shift + J。文件 (Files)注释标签:/** * @Title: ${file_name}* @Package ${package_name}* @Description: ${todo}* @author yokoboy* @date ${da...
分类:
编程语言 时间:
2015-05-30 09:18:10
阅读次数:
218
### 场景介绍 windows下使用cygwin,使用apktool重打包apk; ### 方式一 cd D: cd path/to/apk/in/d apktool d name.apk ### 方式二 将文件拖进cygwin窗口,删除尾部的文件名 CTRL+A cd SPACE apktool d name.apk...
分类:
系统相关 时间:
2015-05-30 01:57:57
阅读次数:
325
今天遇到了几个和字符串相关的内存问题,和大家分享一下NSString*name=[[NSStringalloc]initWithString:@"张三"];NSLog(@"%d",[nameretainCount]);这两行代码的打印结果是-1,NSString*aString=[[NSStringalloc]initWithFormat:@"123"];NSLog(@"%d",aString.retainCount);这两..
分类:
其他好文 时间:
2015-05-30 01:57:11
阅读次数:
527
SELECT DBF.TABLESPACE_NAME, DBF.TOTALSPACE "总量(M)", DBF.TOTALBLOCKS AS 总块数, DBF.TOTALSPACE-DFS.FREESPACE "使用量(M)", DBF.TOTALBLOCKS-DFS.FREEBLO...
分类:
数据库 时间:
2015-05-30 01:46:22
阅读次数:
178
weather.xml
xml version='1.0' encoding='utf-8' standalone='yes' ?>
weather>
city>
name>上海name>
temp>5°temp>
pm>80pm>
city>
city>
name>北京name>
temp>-5°temp>
pm>800pm>
city>
city>
name>西安n...
分类:
其他好文 时间:
2015-05-29 23:21:12
阅读次数:
321
#ifndef _CONTACT_H_//宏定义通讯录
#define _CONTACT_H_ //宏定义通讯录
#define NAME_LEN 30//全局变量
#define SEX_LEN 5//全局变量
#define TELP_LEN 12//全局变量
#define GRO_LEN 15//全局变量
#define MAX_PER 1000//全局变量 ...
分类:
其他好文 时间:
2015-05-29 23:17:54
阅读次数:
158
所需插件
http://ess.r-project.org/index.php?Section=home
下载上一网址的安装包并进行安装,安装完毕后,ess一般被安装到了/usr/share/emacs/site-lisp/ess下,当然也可使用命令 sudo find / -type f -name “ess.el” 查找ess的安装目录
Emacs配置在.emacs文件中添加(add-to-li...
分类:
系统相关 时间:
2015-05-29 23:15:25
阅读次数:
288