# node-study **Repository Path**: upupupy/node-study ## Basic Information - **Project Name**: node-study - **Description**: node学习以及应用 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-18 - **Last Updated**: 2024-06-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #### 更换模版引擎 ``` npm install -S art-template npm install -S express-art-template app.set('view engine', 'jade'); 修改为 app.engine('.html',require('express-art-template')) app.set('view engine','.html') ``` #### 返回对象response ``` .render() 渲染页面 .send() 发送http响应 .json() 返回JSON格式 .status() 设置HTTP状态码 .redirect() 跳转指定路由 ``` #### 许愿墙(node.js+express+art-template+mysql) #### 启动项目 `npm start`