在meteor中使用vue2.x
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.

36 lines
569 B

преди 4 години
<template>
<div>
<button @click="increment">Click Me</button>
преди 4 години
<button @click="routeHandler">router page</button>
<button @click="goback">go back</button>
преди 4 години
<p>You've pressed the button {{counter}} times.</p>
</div>
</template>
<script>
export default {
data() {
return {
counter: 0,
}
},
methods: {
increment() {
this.counter += 1
преди 4 години
},
routeHandler(){
this.$router.push("/page")
},
goback(){
this.$router.go(-1)
преди 4 години
}
},
}
</script>
<style scoped>
p {
font-family: serif;
}
</style>