![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nodejs
文章平均质量分 56
西北风-那小子
走向科技技术的最前沿
展开
-
nodejs中压缩图片分辨率
1.适应在windows7、windowsxp系统2.首先在项目根目录中使用命令npm install --save images安装图片处理模块3.安装成功后然后在路由中使用var images = require('images');导入images模块原创 2017-03-31 15:17:24 · 2438 阅读 · 0 评论 -
nodejs中文件上传并限制图片大小
1.前端html页面<form id="knowledge" class="form-horizontal popup" > <input type="file" class="fileUpload" name="file" id="upload-file" > <input type="submit" id="btnCrop" class="Btnsty_peyton" value="OK"></form>2.jquery中的实现为:原创 2017-03-31 15:32:42 · 3138 阅读 · 0 评论 -
nodejs使用express+ejs对mysql数据库的增删改查
1.在已经搭建好的nodejs+express+ejs框架中创建config目录,在目录中创建db.js里面写入如下代码:原创 2017-05-11 09:33:42 · 2987 阅读 · 1 评论