Home > Article > Web Front-end > How to click the button to switch pages in uniapp
Uniapp clicks the button to switch the page: use the carousel page, the code is [methods:{gotoLunBo(){uni.navigateTo({url: 'test?id=1&name=uniapp'}}] .

The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, this method is suitable for all brands of computers.
Recommended ( Free): uni-app development
uniapp method of clicking the button to switch pages:
<view class="" @tap="gotoLunBo">
去轮播页
</view>
//
methods:{
gotoLunBo(){
uni.navigateTo({
// url: 'test?id=1&name=uniapp' c传递参数
url:"/pages/banpaiindex/banpaiindex"
})
}
},
//路径注意就行了
{
"path" : "pages/banpaiindex/banpaiindex",
"style" : {}
}
The above is the detailed content of How to click the button to switch pages in uniapp. For more information, please follow other related articles on the PHP Chinese website!