页面刷新不定位到之前的滚动位置
history.scrollRestoration支持下面两个属性值:
- auto 默认值,表示滚动位置会被存储
- manual 表示滚动位置不会被存储
if (history.scrollRestoration) {
history.scrollRestoration = 'manual';
}
以自己现在的努力程度,还没有资格和别人拼天赋
history.scrollRestoration支持下面两个属性值:
if (history.scrollRestoration) {
history.scrollRestoration = 'manual';
}