`
欧阳泽
  • 浏览: 39282 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

一个js函数

 
阅读更多

 scrollTo(x,y);

将窗口的左上角定位到x,y坐标

如 onclick="window.scrollTo(0,0);"

 

页面回到顶部

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics