Compare commits

..

No commits in common. "d4d85a1f11f5ff8e17b8b2f1073c1eaef47c1917" and "b64bd050bdf2c03f47dedd8b38cd949604115f2e" have entirely different histories.

View File

@ -4,8 +4,7 @@
<!-- 不能用a标签 --> <!-- 不能用a标签 -->
<!-- <a href="/foo">到foo</a> --> <!-- <a href="/foo">到foo</a> -->
<!-- <router-link to="/foo">到foo</router-link> --> <!-- <router-link to="/foo">到foo</router-link> -->
<button @click="tiaozhuan">用js replace 跳转</button> <button @click="tiaozhuan">用js跳转</button>
<button @click="back">后退一步</button>
<router-link :to="{path:'/foo',query:{name:123,age:234,asda:1411}}">到foo</router-link> <router-link :to="{path:'/foo',query:{name:123,age:234,asda:1411}}">到foo</router-link>
</div> </div>
</template> </template>
@ -14,17 +13,8 @@ export default {
methods:{ methods:{
tiaozhuan(){ tiaozhuan(){
// js this.$router.push // js this.$router.push
// js (*)
//
this.$router.push({path:'/foo',query:{name:123,age:234,asda:1411}}) this.$router.push({path:'/foo',query:{name:123,age:234,asda:1411}})
// 退
//
// this.$router.replace({path:'/foo',query:{name:123,age:234,asda:1411}})
},
back(){
// 退 退
// 退
this.$router.go(99999);
} }
} }
} }