摘要:
1 2 3 4 5 -webkit-filter 6 21 22 23 24 -webkit-filter 25 26 blur 27 px 28 brightness 29 % 30 contrast 31 % 32 ... 阅读全文
摘要:
ERROR: Could not find a valid gem 'sass' (>= 0), here is why: Unable to download data from http://rubygems.org/ - Errno::EACCES: Permission ... 阅读全文
摘要:
看了些资料,对应只需要知道怎么查询和使用mongodb的我来说,这些足够啦。左边是mongodb查询语句,右边是sql语句。对照着用,挺方便。db.users.find() select*fromusersdb.users.find({"age":27}) select*fromuserswhere... 阅读全文
摘要:
var express = require('../') , request = require('supertest') , cookieParser = require('cookie-parser')describe('req', function(){ describe('.signe... 阅读全文
摘要:
1.源码缩影 !(function (name, definition) { var hasDefine = typeof define === 'function', //检查上下文环境是否为AMD或CMD hasExports = typeof module !==... 阅读全文
摘要:
当我们在写web的时候,难免会要使用到cookie,由于node.js有了express这个web框架,我们就可以方便地去建站。在使用express时,经常会使用到cookie-parser这个插件。今天我们来分析一下这个插件。这个插件通常当作中间件使用,app.use(cookieParser()... 阅读全文
摘要:
Mongoose API : http://mongoosejs.com/docs/api.html// mongoose 链接var mongoose = require('mongoose');var db = mongoose.createConnection('mongodb://127.0... 阅读全文
摘要:
问题:我使用expressjs和mongostore来管理session。下面是expressjs中的设置。app.configure(function(){ app.use(express.session({ secret:conf.secret, maxAge:newDate(Date.... 阅读全文
摘要:
开发工具1.WebStorm,毫无疑问非他莫属,跨平台,强大的代码提示,支持Nodejs调试,此外还支持vi编辑模式,这点我很喜欢。2.做些小型项目用Sublime Text。3.Browserify:将你的nodejs模块应用到浏览器中4.nvm:nodejs版本管理工具,你可能会用到多个node... 阅读全文