启动Angular项目时通常输入 ng server命令,执行完之后还需要在浏览器输入localhost:4200,真的是麻烦。只要将命令换成 ng serve --open 然后等着就行了,舒服多了。