NodeJs(Web篇)Express框架(二)中间件Express-static,body-parser, multer

express借助中间件能够更加高效的完成工做javascript Express-static: Express-static 是express一个读取静态文件的中间件,安装:npm install express-static html 使用方法为server.use(static(rootpath))这样用户访问的文件能够转到rootpath的目录下了java 好比输入localhost:8
相关文章
相关标签/搜索