提交成功后提示想信息然后跳转其他页面

 1 uni.showToast({
 2 title: '提交成功',
 3 icon: 'success',
 4 duration: 3000
 5 })
 6 setTimeout(function() {
 7 uni.navigateBack({
 8 delta: 1
 9 })
10 }, 1000);        

此代码是跳回到上一页,如果不写延迟跳转将会不提示信息

posted @ 2024-06-05 16:49  prince11  阅读(2)  评论(0编辑  收藏  举报