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.
41 lines
858 B
41 lines
858 B
<!doctype html>
|
|
<html lang="zh" gv-id="index">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="keywords" content="">
|
|
<link rel="stylesheet" href="css/main.css">
|
|
<script src="js/vue.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="app">
|
|
<div class="content">
|
|
<my-title></my-title>
|
|
<template v-for="desc in descs">
|
|
<li >
|
|
<a @click="click" gv-ignore="@click">{{desc}}</a>
|
|
</li>
|
|
</template>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
|
|
<a href="#" v-on:click="ssr" gv-ignore>{{a}}</a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<script>
|
|
new Vue({
|
|
el: "#app",
|
|
methods: {
|
|
click: function () {
|
|
alert("点击触发");
|
|
},
|
|
ssr: function () {
|
|
location.href = "ssr.html?test"
|
|
},
|
|
}
|
|
});
|
|
</script>
|
|
|
|
</html>
|