在src文件中创建路由配置文件config.js,实现路由跳转 在config.js中配置资源的全路径,引入join方法,并输出viewsPath publicPath 在src中的app.js中引入 config.js App.js中配置公共资源访问路径 打印根路径 在浏览器中输入localshot:3000,git bush中输出根路径