การติดตั้ง Express JS บน Windows
1 2 3 4 5 6 7 8 9 10 11 12 |
var express = require('express'); var app = express(); function helloworld(req, res) { res.send('<h1>First Page => Index.js</h1>'); } app.use('/', helloworld); var runserv = app.listen(9999, function() { console.log('Express With Port 9999'); }); |