摘要: 转自:https://blog.csdn.net/cgwcgw_/article/details/39317587 完整代码下载 https://github.com/haishangfeie/weibo 开发详细步骤 创建项目: 按提示输入 现在,我们先启动网站看看 如果能运行到以上的效果,那么项 阅读全文
posted @ 2017-12-23 17:30 Sharpest 阅读(796) 评论(0) 推荐(0) 编辑
摘要: 改成<% if (!locals.user) { %> 阅读全文
posted @ 2017-12-23 14:54 Sharpest 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/fd214333890/article/details/53467429 阅读全文
posted @ 2017-12-23 14:52 Sharpest 阅读(4340) 评论(0) 推荐(0) 编辑
摘要: 在app.js 中调用app.use 的顺序有关 app.use(session({ secret: settings.cookieSecret, key: settings.db,//cookie name cookie: { maxAge: 1000 * 60 * 60 * 24 * 30 }, 阅读全文
posted @ 2017-12-23 14:51 Sharpest 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Express版本太久 阅读全文
posted @ 2017-12-23 14:22 Sharpest 阅读(1183) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/whoamme/p/3467374.html 首先安装nodejs mongodb 阅读全文
posted @ 2017-12-23 11:02 Sharpest 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/sexintercourse/p/6485381.html 首先要确保mongodb的正确安装,安装参照:http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian-or-u 阅读全文
posted @ 2017-12-23 11:01 Sharpest 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 转自:http://yunkus.com/connect-flash-usage/ connect-flash 用法详解 转自:http://yunkus.com/connect-flash-usage/ connect-flash 用法详解 转自:http://yunkus.com/connect 阅读全文
posted @ 2017-12-23 10:57 Sharpest 阅读(711) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/jkingdom/p/8065202.html 摘要: nodejs取参四种方法req.body,req.params,req.param,req.body 获取请求很中的参数是每个web后台处理的必经之路,nodejs提供了四种方法来实现。 获取 阅读全文
posted @ 2017-12-23 10:11 Sharpest 阅读(192) 评论(0) 推荐(0) 编辑