uniapp关闭当前页面的几种方法

  

利用uniapp开发,如何实现关闭当前页面?下面编程教程网小编给大家简单介绍几种方法!

利用uni.navigateBack方法

uni.navigateBack({
  delta: 1,
  animationType: 'pop-out',
  animationDuration: 200
});

利用uni.reLaunch方法

uni.reLaunch({
  url: '/pages/index/index',
  animationType: 'pop-out',
  animationDuration: 200
})
以上是编程学习网小编为您介绍的“uniapp关闭当前页面的几种方法”的全面内容,想了解更多关于 前端知识 内容,请继续关注编程基础学习网。

相关文章