uniapp开发app解决uni.pageScrollTo不生效 前端_旧城 2021-03-30 2,434 阅读1分钟 使用uni.pageScrollTo让页面滚动到最底部,用了好多方法,定时器呀、this.$nextTick呀都发现设置无效,最后发现这种方式可以解决 //最外层设置class .wrapper{ height:auto!important; } uni.pageScrollTo({ scrollTop: 2000000, duration : 0, //app端这个必须设置成0 })