js w页面返回顶部失效

须要同时设置两个属性, 否则对某些机型不支持。markdown

document.body.scrollTop = document.documentElement.scrollTop = 0;
复制代码
相关文章
相关标签/搜索