![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
node
colorset
这个作者很懒,什么都没留下…
展开
-
node 邮箱发送nodemailer
安装 npm install nodemailer --saverouter文件夹新建nodemailer.``js// 这是一个发送邮件的模块const nodemailer = require('nodemailer');// 简单配置const params = { host: 'smtp.163.com', port: 465, s...原创 2018-09-27 13:49:00 · 412 阅读 · 0 评论 -
node接口学习记录
首先app.js里面var getRouter = require('./routes/gets');//获取整张表var getoneRouter = require('./routes/getone');;//根据条件获取var postRouter = require('./routes/posts');增加var delRouter = require('./routes/del'...原创 2018-09-27 14:30:42 · 174 阅读 · 0 评论 -
node 上传图片学习笔记
安装npm install formidable@latestapp.js中var postphoto = require('./routes/upphoto');app.use('/photos', postphoto);routers文件夹下面创建upphoto。jsvar formidable = require('formidable'), util = requir...原创 2018-09-28 16:20:06 · 736 阅读 · 0 评论