BlogPost5 min read如何将一个html以host方式运行跑起来Written on 2025.11.05直接贴代码npx http-server . -p 8084 随后你浏览器直接访问 http://127.0.0.1:8084/test.html 就可以了