• express.js ejs template engines

    安装ejs $ npm install ejs start let express = require('express'); let app = express(); app.set('views', './views') // specify the views directory app.set('view engine', 'ejs') // register the template e…

    伴侣哟 2018-10-17 Learn 726

  • express.js start

    安装 $ npm install express --save hello world let express = require('express'); let app = express(); app.get('/', (req, res) => { res.send('Hello World!') }); //配置3000端口 http://127.0.0.1:3000 app.listen…

    伴侣哟 2018-09-30 Learn 641