本地运行swagger editor步骤
1. 安装node.js,直接去官网下一个
2. 打开cmd命令行,输入下面代码安装http-server
npm install http-server -g
3. 从https://github.com/swagger-api/swagger-editor下载swagger editor并解压到任意文件夹
4. 命令行cd到swagger editor目录,然后输入下面命令显示启动成功
http-server
问题来了
跟着网上的教程来,输入http://127.0.0.1:8080到浏览器访问,却发现最后总是无法打开页面
解决方法
添加/index再访问
http://127.0.0.1:8080/index