Install
在命令行执行
tnpm i http-server -g
Run
在命令行执行,会启动一个本地 http 服务器,server 内容为当前目录,server 端口 8080
http-server

Verify
目录中创建 index.html & index.js
<html><head><script src='/index-0.1.js'></script></head><body>http-server is cool</body></html>
alert('http-server is cool');
启动服务,打开浏览器:127.0.0.1:8080
