1. Model操作 - v = models.UserInfo.objects.all() - v = models.UserInfo.objects.values("xx") - v = models.UserInfo.objects.values_list() - v = models.Use ...
分类:
其他好文 时间:
2017-06-02 01:19:45
阅读次数:
263
1.setState的方法不能用在render中,可用this.state=" "代替,一般不推荐,在render里面不应该有此操作。 2.setState引起重新渲染render是一个异步操作。 3.return后面不能直接换行,要跟代码或者大括号。 4.原生HTML元素名以小写字母开头,而自定义 ...
分类:
其他好文 时间:
2017-06-02 01:14:32
阅读次数:
163
1、SHOW TABLES; -- 查询库中所有的表 2 、CREATE TABLE test(id INT(20) PRIMARY KEY NOT NULL AUTO_INCREMENT,NAME VARCHAR(50),sex CHAR(1),birth DATE,death DATE); -- ...
分类:
数据库 时间:
2017-06-02 01:10:52
阅读次数:
235
Some technicians have a tendency to use the terms router, switch and hub interchangeably, but have you ever wondered what the difference is? Some tech ...
分类:
其他好文 时间:
2017-06-01 23:45:06
阅读次数:
404
1、字面字符串 摒弃: NSString *someString = [[NSString alloc] initWithString: @"Effective Objective-C 2.0"]; 提倡: NSString *someString = @"Effective Objective-C ...
分类:
其他好文 时间:
2017-06-01 23:37:12
阅读次数:
265
Access all tutorials in sprocket icon. June 12, 2015 from author Bill Keck. Sometimes for beginners, the idea of PHPUnit testing code can be scary. Yo ...
分类:
Web程序 时间:
2017-06-01 23:34:16
阅读次数:
316
一. Crontab 介绍 1、crontab命令的功能是在一定的时间间隔调度一些命令的执行,我理解为windows下的任务计划。 2、/etc/crontab 文件 在/etc目录下有一个crontab文件,这里存放有系统运行的一些调度程序,每个用户可以建立自己的调度crontab。 例如我服务器 ...
分类:
其他好文 时间:
2017-06-01 21:38:35
阅读次数:
241
在终端执行 find / -name eclipse.app 得到 eclipse路径 执行open -n 路径 完成双开 open -n /users/zhangfeng/Downloads/eclipse.app ...
分类:
系统相关 时间:
2017-06-01 20:30:35
阅读次数:
201
数据库操作: //查看有哪些数据库 > show dbs local 0.078GB mydb 0.078GB //use操作将切换到一个数据库 如果数据库存在将直接切换 如果不存在 那么会在切换之后,第一次执行新增修改操作的时候去创建这个数据库 > use newdb switched to db ...
分类:
数据库 时间:
2017-06-01 20:29:27
阅读次数:
208
1.安装 Rabbit MQ 是建立在强大的Erlang OTP平台上,因此安装RabbitMQ之前要先安装Erlang。 erlang:http://www.erlang.org/download.html rabbitmq:http://www.rabbitmq.com/download.htm ...
分类:
其他好文 时间:
2017-06-01 19:40:47
阅读次数:
171