node.js入门实例helloworld详解

preview
需积分: 0 0 下载量 91 浏览量 更新于2020-12-23 收藏 45KB PDF 举报
本文实例讲述了node.js入门实例helloworld。分享给大家供大家参考,具体如下: 将下面的代码保存为:server.js存到E盘下面的node目录中。 var http = require('http'); function myNode(request, response){ response.writeHead(200, {'Content-type':'text/plain'}); response.write('hello world'); //hello world response.end(); } http.createServer(myNode).lis
身份认证 购VIP最低享 7 折!
30元优惠券
weixin_38748556
  • 粉丝: 6
  • 资源: 925
上传资源 快速赚钱
voice
center-task 前往需求广场,查看用户热搜

最新资源