English 中文(简体)
How to make index.html page as anyman page using Node. j)
原标题:How to make index.html page as an welcome page using Node.js
  • 时间:2011-10-11 06:55:59
  •  标签:
  • node.js
  • web

http://en.wikipedia.org/wiki/Node.js“rel=“nofollow”>Node.js,并尝试不同的Node.js。 我想在Node.js开发一个网站,我希望第一个网站(受欢迎的网页)成为超文本文件。 哪一个例子可以说明它喜欢什么?

最佳回答

那里有一门教士,只是想到你们去。

取自nodejs.org。 网站:

var http = require( http );
http.createServer(function (req, res) {
    res.writeHead(200, { Content-Type :  text/plain });
    res.end( Hello World
 );
}).listen(1337, "127.0.0.1");
console.log( Server running at http://127.0.0.1:1337/ );

还有的伟大录像。

有趣的是Express.js

但是,首先必须具备基本条件。

问题回答

暂无回答




相关问题
Block Websites Under Certain Conditions

I d like to create a simple program that will block certain websites for the user under certain conditions (e.g. after 7:00pm if homework is due the next day). This would be just a programming ...

Looking for a good exercise in building a website

I d like to learn how to build a website, say using .Net (Monorail comes to mind). I d like a pet project, something that: Will take a fair yet reasonble amount of time I can I can build on my own ...

Recoding a Podcast Website - What should I use?

OK here is the deal. Me and some buddies are doing a Podcast(for over 4 year now) and in April we relaunched the site, that included a new Backend. Since I only had 2 weeks back then for getting ...

Cache And Compare Files In C#

Ok, I m trying to make an application for an online Radio Station. I have it set to read the song title and artist and write it to a text file on the webserver. I want to have the application store ...

How does Drupal provide an edit/review/publish model?

How does Drupal support a means to update and review a website before it is published? Does it only allow you to preview a page at a time before you publish it or is there a way to create a site ...

热门标签