Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

require("http").Server(app),server里参数的含义是什么?有API么?

$
0
0

var express=require(“express”); var app=express(); var http=require(“http”).Server(app); var io=require(“socket.io”).Server(http);

以上代码中Server里参数的含义是什么?有API么? 我搞不懂为什么要传入这些参数,也找不到相关文档,只知道大家都这么写。


Viewing all articles
Browse latest Browse all 14821

Trending Articles