1/.createServer from module "http"2/.createServer from expressjs哪个更好?
Expressjs构建在http.createServer之上。我推荐使用expressjs,因为它要简单得多。
Expressjs在Node中封装和扩展http。
然而,根据这个问题,您应该意识到express.createServer()
看起来已经不推荐使用了。
表达3。x只要求server = express()