
Node.js
章鱼仔
hhh
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【Node.js】 使用express配置静态web服务、http客户端以及get与post基本用法
Node.js原创 2018-07-19 16:48:01 · 1168 阅读 · 0 评论 -
【Node.js】Buffer模块常用方法
Node.js原创 2018-07-12 00:31:35 · 1195 阅读 · 0 评论 -
【Node.js】 net模块及事件监听
net模块 对比C语言的网络编程,Node.js有更加简便的开发模式与模块提供。它就是net模块 在需要使用的时候只需要require("net")就可以引入模块了。 var net = require("net"); 服务端编程 引入模块的前提下: 1. 创建一个新的TCP或IPC服务 var server = net.createServer(function(client_...原创 2018-07-07 21:33:10 · 1894 阅读 · 0 评论 -
【Node.js】 process模块基本属性与常用方法
Node.js的process模块 主要介绍常用的属性和方法 主要属性 console.log(process.pid);//进程ID console.log(process.version);//进程版本 console.log(process.platform);//进程平台 console.log(process.title);//进程对应窗口名称 console.log(pr...原创 2018-07-05 00:46:05 · 2070 阅读 · 0 评论 -
【Node.js】 node.js连接mysql与基本使用
下载mysql模块 使用命令npm install mysql下载mysql模块 mysql 引入模块 var mysql = require("mysql"); 创建连接池 使用createPool()创建一个mysql连接池,传入一个表参数作为连接信息 var pool = mysql.createPool({ host:"127.0.0.1", port:...原创 2018-07-30 19:15:28 · 1158 阅读 · 0 评论