![](https://i-blog.csdnimg.cn/blog_migrate/fe18b290390dc3a47a8ffc65c704812a.png)
以上jquery,下面js
this.router.events.subscribe((event) => {
document.body.scrollTop=0;
});
![](https://i-blog.csdnimg.cn/blog_migrate/fe18b290390dc3a47a8ffc65c704812a.png)
以上jquery,下面js
this.router.events.subscribe((event) => {
document.body.scrollTop=0;
});
转载于:https://www.cnblogs.com/mary-123/p/10728614.html