document.documentElement.style.overflow = 'hidden'; //隐藏横竖滚动条 window.scrollTo(0,document.body.scrollHeight);//控制滚动条的位置
一定要注意先后顺序