I was too naïve to write 12 days in a row before I went crazy years ago.
20 days in a row, I was really bitter and forced into a dog.
I got home a couple of nights 12 o'clock.
And lately, too, too much learning is something that's really busy on the project.
Simply wrote a Nodejs
/** * Created by Administrator on 2016/2/12.*/varHTTP = require (' http ');varurl = require (' URL '));varServer =http.createserver (); Server.on (' Request ',function(req,res) {varUrlstr =Url.parse (Req.url); Switch(urlstr.pathname) { Case‘/‘: Res.writehead (200,{ ' Content-type ': ' Text/html;charset=utf-8 ' }); Res.end (' ); Break; Case'/user ': Res.writehead (200,{ ' Content-type ': ' Text/html;charset=utf-8 ' }); Res.end (' ); Break; default: Res.writehead (50U,{ ' Content-type ': ' Text/html;charset-utf-8 ' }); Res.end (' ); Break; }}); Server.listen (8080, ' localhost ');
Nodejs-Returns different data depending on the user address