- 博客(8)
- 资源 (2)
- 收藏
- 关注
转载 C ++ 11 New Feature Notes
LambdasAnonymous functions, called lambda, have been added to C ++ and quickly rose to prominence. It is a powerful feature borrowed from functional programming, that in turned enabled other feature
2015-05-26 23:34:46
517
转载 ExpressJs - 04 - what does express.static(__dirname) point do?
In Node, the __dirname is a global object that contains the name of the directory that the executing script resides from. For example, if you are running node script.js from '/home/user/env', then__
2015-04-07 06:46:17
468
转载 真正决定一个人成就的,不是天分,也不是运气,而是严格的自律和高强度的付出。
真正决定一个人成就的,不是天分,也不是运气,而是严格的自律和高强度的付出。
2015-04-05 07:20:42
4120
转载 CR, LF, CR/LF 回车 换行
在文本处理中, CR, LF, CR/LF是不同操作系统上使用的换行符.Dos和windows采用回车+换行CR/LF表示下一行, 而UNIX/Linux采用换行符LF表示下一行,苹果机(MAC OS系统)则采用回车符CR表示下一行.CR用符号’r’表示, 十进制ASCII代码是13, 十六进制代码为0x0D; LF使用’n’符号表示, ASCII代码是10, 十六制为0x
2015-04-05 04:55:07
2474
原创 ExpressJs - 03 - Jade to html
var jade = require ('jade');/* -- convert jade to html */// compileFile//var fn = jade.compile('string of jade', {});var fn = jade.compileFile( './views/_header.jade', {}); // here is you
2015-04-02 06:24:12
349
原创 ExpressJs - 02 - how to access the attributies of req and res
function(req, res) {req.params // get info from url req.query // to get info as a query string req.body // to get access to the info submitted as part of the form};
2015-04-01 06:06:21
312
原创 ExpressJs - 01 - nodemon
$ npm install -g nodemon$ nodemon yourJsFile // e.g. nodemon serverNote: It will restart the js project whenever there is a change. Good for nodeJs development.
2015-04-01 05:45:17
296
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人