ECMA6
-
02. ECMA6 로 해보기 ( Login ) [Node.js]NodeJS 2016. 11. 15. 17:17
Login formServer.js const http = require('http');const fs = require('fs');const url = require('url');const querystring = require('querystring');const ejs = require('ejs'); const responseHeader = { 'Content-Type' : 'text/html'} const userId = 'admin';const userPassword = '1234'; http.createServer( (request, response) => { const path = url.parse(request.url).pathname; if ( path == '/login') { fs.r..