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.
|
|
<!DOCTYPE html> <html lang="zh">
<head> <title>{{ title }}</title> <script src="js/vue.js"></script> </head>
<body> <!--gv-start--> <div> <h1>Hello App!</h1> <p> <router-link to="/foo">Go to Foo</router-link> <router-link to="/bar">Go to Bar</router-link> </p> <router-view></router-view> </div> <!--gv-end--> </body>
<script src="js/govue.js"></script> <script gv-src> var routes = [ { path: '/router.html', component: {template: '123'}}, {path: '/bar.html', component: {template: '123'}} ] var router = new VueRouter({ mode: 'history', routes: routes }) var app = new Vue({}); GoVueMount(app, { title: "123" }) </script> </html>
|