nodejs 更新代码自动刷新页面 安装第三方工具: nodemon npm install --global nodemon 安装完毕后使用: 之前使用: node xxx.js 改成 nodemon xxx.js 只要通过nodemon 启动的服务, 它会检测文件的变化,自动帮你重启服务器