diff --git a/docs/component/scroll-view.md b/docs/component/scroll-view.md index ffe43da6378d34106e6b7d76950213d7aff42aee..145cfcc9251a02381a023ebc5bff51b9703db3f3 100644 --- a/docs/component/scroll-view.md +++ b/docs/component/scroll-view.md @@ -98,7 +98,7 @@ export default { }, goTop: function(e) { this.scrollTop = this.old.scrollTop - this.$nextTick(function() { + this.$nextTick(() => { this.scrollTop = 0 }); uni.showToast({