自己搭建node服务器环境(请求静态资源、get请求、post请求)

1、搭建环境

 

 

 2、编写代码

app.js

 

 get 、post 请求

 

 index.html

 

 访问文件

http://localhost:3000

http://localhost:3000/index

http://localhost:3000/jquery

...

posted @ 2021-03-12 17:00  buhuishuideyu  阅读(135)  评论(0编辑  收藏  举报