You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
742 B

5 years ago
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <title>{{ title }}</title>
  5. <script src="js/vue.js"></script>
  6. </head>
  7. <body>
  8. <!--gv-start-->
  9. <div>
  10. <h1>Hello App!</h1>
  11. <p>
  12. <router-link to="/foo">Go to Foo</router-link>
  13. <router-link to="/bar">Go to Bar</router-link>
  14. </p>
  15. <router-view></router-view>
  16. </div>
  17. <!--gv-end-->
  18. </body>
  19. <script src="js/govue.js"></script>
  20. <script gv-src>
  21. var routes = [
  22. { path: '/router.html', component: {template: '123'}},
  23. {path: '/bar.html', component: {template: '123'}}
  24. ]
  25. var router = new VueRouter({
  26. mode: 'history',
  27. routes: routes
  28. })
  29. var app = new Vue({});
  30. GoVueMount(app, {
  31. title: "123"
  32. })
  33. </script>
  34. </html>