node

看了看官方文档, 感觉自己看不下去,我只能用零碎的记忆碎片,来说一下我对node 理解
首先我们先来感受一下node开发

const http = require("http");// 引入htpp 模块
http.creacteServer((req, res) => { // 创建一个服务
res.statusCode = 200;
res.Header("Content-Type", "text/plain");
res.end("Hello World");
})

node开发中,模块, 回调利用好, 那么你会在开发中得心应手, node 重要模块中为 express 这个模块非常重要

发表评论

您的电子邮箱地址不会被公开。