首先确保你的电脑安装了node环境(node -v)然后在该jsDemo文件夹下使用npm install http-server -g 安装一个简单的静态服务器,-g是全局安装最后设置端口http-server -p 8001