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