报错截图: 报错原因:未引用router的js文件 解决:在body标签添加一句: <script src="https://unpkg.com/vue-router/dist/vue-router.js"></script>