上一页 1 ··· 109 110 111 112 113 114 115 116 117 ··· 222 下一页
摘要: Node.js 在安装模块的时候报错,缺少python环境。 ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. 阅读全文
posted @ 2017-12-21 09:57 Sharpest 阅读(29949) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/q36835109/article/details/53067917 注:由于本人使用最新版本的nodemailer不兼容,所以目前使用的是0.7.1版的nodemailer 下面展示的是使用QQ邮箱发送邮件的实例,如果你有其它需求,也可以更换成其他 阅读全文
posted @ 2017-12-20 17:24 Sharpest 阅读(659) 评论(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 阅读(554) 评论(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 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.runoob.com/nodejs/nodejs-express-framework.html 安装驱动 本教程使用了淘宝定制的 cnpm 命令进行安装: 连接数据库 在以下实例中修改根据你的实际配置修改数据库用户名、及密码及数据库名: test.js 文件代码: 1 v 阅读全文
posted @ 2017-12-20 15:05 Sharpest 阅读(246) 评论(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 阅读(215) 评论(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 阅读(111) 评论(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 阅读(194) 评论(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 阅读(517) 评论(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 阅读(221) 评论(0) 推荐(0) 编辑
上一页 1 ··· 109 110 111 112 113 114 115 116 117 ··· 222 下一页