node helloworld
来源:互联网 发布:怎样成为淘宝客 编辑:程序博客网 时间:2024/05/14 23:49
// 引包const http = require('http');// 初始化ip和端口const hostname = "127.0.0.1";const port = "3000";// 创建服务器const server = http.createServer((req,res)=>{ // 设置状态码 res.statusCode = 200; // 设置响应头 res.setHeader('Content-type','text/html;charset=UTF-8'); // 输出 res.end("hello world!");});// 监听server.listen(port, hostname, () => { console.log(`服务器运行在 http://${hostname}:${port}/`);});
阅读全文
0 0
- node helloworld
- node.js另类helloWorld
- node学习之一 helloWorld
- node第一天-helloworld
- node.js入门之helloworld
- Node.js的helloworld 程序
- node.js创建HelloWorld程序
- node.js创建Helloworld项目
- Node.js 简单的HelloWorld
- node.jsの安装helloWorld
- nginx and node.js配合使用 helloworld
- Node.js 经典helloworld 学习笔记
- node.js自学笔记(1)-Helloworld
- mac 下安装node 并 运行helloworld
- node.js环境搭建——helloworld
- node.js 任务2 web版helloworld
- Node.js HelloWorld的小细节
- Node.js学习教程之二:node.js的HelloWorld
- 讲课大师 微信多群自动转播/实时转播
- Xposed源码剖析——Xposed初始化
- 2017湖南多校第十三场-COJ1963-Feed the rabbit
- java多线程之死锁的例子
- PHP资源列表
- node helloworld
- 多叉树遍历-文件夹
- 利用ADB和DOS两者进行手机自动截图传输到电脑上和自动安装APP程序
- Android各控件实现背景选中效果总结
- 谈谈final、finally、finalize的区别
- main()方法详解
- android三种动画的认识
- ios 状态栏设置
- 自定义View 结合文章及源码的系统学习