摘要:
转自:https://blog.csdn.net/q36835109/article/details/53067917 注:由于本人使用最新版本的nodemailer不兼容,所以目前使用的是0.7.1版的nodemailer 下面展示的是使用QQ邮箱发送邮件的实例,如果你有其它需求,也可以更换成其他 阅读全文
posted @ 2017-12-20 17:24
Sharpest
阅读(689)
评论(0)
推荐(0)
摘要:
转自:https://segmentfault.com/q/1010000002649920/a-1020000002655984 不知道你自己现在已经发现问题没, Unexpected token : in D:\text_node\nodejs-demo\views\index.ejs whil 阅读全文
posted @ 2017-12-20 16:57
Sharpest
阅读(562)
评论(0)
推荐(0)
摘要:
转自:https://blog.csdn.net/u010142437/article/details/79012605 错误显示: Error: Cannot find module 'ejs' at Function.Module._resolveFilename (module.js:325: 阅读全文
posted @ 2017-12-20 16:39
Sharpest
阅读(466)
评论(0)
推荐(0)
摘要:
安装驱动 本教程使用了淘宝定制的 cnpm 命令进行安装: 接下来我们来实现增删改查功能。 创建数据库 要在 MongoDB 中创建一个数据库,首先我们需要创建一个 MongoClient 对象,然后配置好指定的 URL 和 端口号。 如果数据库不存在,MongoDB 将创建数据库并建立连接。 创建 阅读全文
posted @ 2017-12-20 15:18
Sharpest
阅读(242)
评论(0)
推荐(0)
摘要:
转自:http://www.runoob.com/nodejs/nodejs-express-framework.html 安装驱动 本教程使用了淘宝定制的 cnpm 命令进行安装: 连接数据库 在以下实例中修改根据你的实际配置修改数据库用户名、及密码及数据库名: test.js 文件代码: 1 v 阅读全文
posted @ 2017-12-20 15:05
Sharpest
阅读(253)
评论(0)
推荐(0)
摘要:
转自:http://www.runoob.com/nodejs/nodejs-express-framework.html 什么是 REST? REST即表述性状态传递(英文:Representational State Transfer,简称REST)是Roy Fielding博士在2000年他的 阅读全文
posted @ 2017-12-20 14:42
Sharpest
阅读(222)
评论(0)
推荐(0)
摘要:
转自;http://www.runoob.com/nodejs/nodejs-express-framework.html 我们可以使用中间件向 Node.js 服务器发送 cookie 信息,以下代码输出了客户端发送的 cookie 信息: express_cookie.js 文件代码: // e 阅读全文
posted @ 2017-12-20 14:01
Sharpest
阅读(119)
评论(0)
推荐(0)
摘要:
转自:http://www.runoob.com/nodejs/nodejs-express-framework.html 文件上传 以下我们创建一个用于上传文件的表单,使用 POST 方法,表单 enctype 属性设置为 multipart/form-data。 index.htm 文件代码: 阅读全文
posted @ 2017-12-20 13:58
Sharpest
阅读(202)
评论(0)
推荐(0)
摘要:
转自:http://www.runoob.com/nodejs/nodejs-express-framework.html GET 方法 以下实例演示了在表单中通过 GET 方法提交两个参数,我们可以使用 server.js 文件内的 process_get 路由器来处理输入: index.htm 阅读全文
posted @ 2017-12-20 11:21
Sharpest
阅读(531)
评论(0)
推荐(0)
摘要:
转自:http://www.runoob.com/nodejs/nodejs-express-framework.html Express 提供了内置的中间件 express.static 来设置静态文件如:图片, CSS, JavaScript 等。 你可以使用 express.static 中间 阅读全文
posted @ 2017-12-20 11:03
Sharpest
阅读(228)
评论(0)
推荐(0)
摘要:
转自:http://www.runoob.com/nodejs/nodejs-express-framework.html Express 简介 Express 是一个简洁而灵活的 node.js Web应用框架, 提供了一系列强大特性帮助你创建各种 Web 应用,和丰富的 HTTP 工具。 使用 阅读全文
posted @ 2017-12-20 10:55
Sharpest
阅读(370)
评论(0)
推荐(0)
摘要:
转自:https://www.cnblogs.com/yominhi/p/7039795.html 【工具官网】 Node.js : http://nodejs.cn/ 淘宝NPM: https://npm.taobao.org/ 【安装步骤】 一、安装node.js 1.前往node.js官网下载 阅读全文
posted @ 2017-12-20 10:15
Sharpest
阅读(174)
评论(0)
推荐(0)
摘要:
转自:https://blog.csdn.net/u014540814/article/details/78777961 阅读全文
posted @ 2017-12-20 10:13
Sharpest
阅读(1232)
评论(0)
推荐(0)
浙公网安备 33010602011771号