客户要求,小程序页面过长,来回点击,页面必须回到顶部。在onShow里加上这个就好了 onShow() { setTimeout(() => { uni.pageScrollTo({ scrollTop: 0, duration: 0 }); }, 50); }