小白请教个问题

这样的项目我直接打开index.html就能看到效果么,
还是需要什么方式启动项目?

不可以的,直接打开是不能看的,自己搭个本地服务器就行了

放在服务器里直接访问index.html就行了哇

安装 node.js, 使用$ npm install serve -g 安装 serve 模块。
cd 到当前目录, 运行serve 命令,然后得到的访问地址打开就可以了。