您好,登錄后才能下訂單哦!
這篇文章主要介紹了vue頁面跳轉(zhuǎn)如何實現(xiàn)的相關知識,內(nèi)容詳細易懂,操作簡單快捷,具有一定借鑒價值,相信大家閱讀完這篇vue頁面跳轉(zhuǎn)如何實現(xiàn)文章都會有所收獲,下面我們一起來看看吧。
1.使用a標簽跳轉(zhuǎn)
<a href="https://www.baidu.com"><button>點擊跳轉(zhuǎn)</button></a>
2.使用this.$router.push()函數(shù)跳轉(zhuǎn)
<template> <div id='test'> <button @click='goTo()'>點擊跳轉(zhuǎn)</button> </div> </template> <script> export default{ name:'test', methods:{ goTo(){ this.$router.push('/testDemo');
3.使用router-link標簽跳轉(zhuǎn)
<router-link :to="{path:'testDemo',query:{setid:123456}}"> <button>點擊跳轉(zhuǎn)</button> </router-link>
關于“vue頁面跳轉(zhuǎn)如何實現(xiàn)”這篇文章的內(nèi)容就介紹到這里,感謝各位的閱讀!相信大家對“vue頁面跳轉(zhuǎn)如何實現(xiàn)”知識都有一定的了解,大家如果還想學習更多知識,歡迎關注億速云行業(yè)資訊頻道。
免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。