1,页面跳转方式
<button @click="index">跳转到index页面</button>
methods: {
index() {
dd.switchTab({
url: '/pages/index/index'
});
},
}
2,页面跳转并且携带参数
<button @click='but'></button>
methods:{
but(){
dd.switchTab({
url: '/pages/home/home?id=' + this.array
});
}
}