We will learn how adding React Router shifts the balance of responsibilities, and how the components can use both at the same time. Now when we click ...
分类:
其他好文 时间:
2016-06-06 06:50:38
阅读次数:
422
app.js: app.use('/', routes);app.use('/reg', routes);app.use('/u/:user',routes);app.use('/post',routes);app.use('doReg',routes);app.use('login',routes ...
分类:
Web程序 时间:
2016-06-05 22:51:07
阅读次数:
150
可以在php.ini中设置short_open_tag = On 第一步,登录到sql命令行 第二步,使用sql语句修改root密码 使用sql语句改密码时一定要选中数据库 。使用 use mysql;否则会出错 2016.6.5 孤独夜莺 第一步,登录到sql命令行 第一步,登录到sql命令行 第 ...
分类:
Web程序 时间:
2016-06-05 15:18:55
阅读次数:
180
We can use # comment to coment a row or several rows still we can use a more effecient way to comment multiple lines '''start ... ... end''' where the ...
分类:
编程语言 时间:
2016-06-05 13:51:05
阅读次数:
150
If we do not know exactly how many times the loop will circle, but we do know the condition keeping the loop circlling, we can use: while condition: a ...
分类:
编程语言 时间:
2016-06-05 12:26:17
阅读次数:
207
为什么学习Node,因为他的门槛比较高一点,现在比较热门一点。 技术这种东西,用最短的时间学会了收益终身。 1.常用的中间件: // 通用的中间件app.use(require('response-time')());app.use(helmet.frameguard('sameorigin')); ...
分类:
其他好文 时间:
2016-06-05 01:07:43
阅读次数:
138
首先设置好此连载笔记的演示所用的表 CREATE database sells; #创建名叫sells的数据库 USE sells; #告诉mysql,我要开始使用这个数据库了 CREATE TABLE Customers #创建Customers表 ( cust_id char(10) NOT N ...
分类:
数据库 时间:
2016-06-04 17:56:29
阅读次数:
269
We will learn how to use store.subscribe() to efficiently persist some of the app’s state to localStorage and restore it after a refresh. To save data ...
分类:
其他好文 时间:
2016-06-04 07:00:45
阅读次数:
204
mongodb常用命令脚本化-自动化运维 把一些运维中常用到的mongodb命令写成shell脚本,极大的方便了维护 1 设置副本集 #!/bin/bash#mongodb 进入client 并use admincd /usr/mongodb/binMongoDB='./mongo 192.168. ...
分类:
数据库 时间:
2016-06-03 21:05:58
阅读次数:
280
成功启动MongoDB后,再打开一个命令行窗口输入mongo,就可以进行数据库的一些操作。输入help可以看到基本操作命令,只是MongoDB没有创建数据库的命令,但有类似的命令 如:如果你想创建一个“myTest”的数据库,先运行use myTest命令,之后就做一些操作(如:db.createC ...
分类:
数据库 时间:
2016-06-03 18:51:25
阅读次数:
259