摘要: 最近用Vue写了个移动端项目,真机测试时,发现const top = document.documentElement.scrollTop的值为0,而在PC端却能正常获取到,查了下资料,发现解决办法也不是很难,就一句话。 解决办法: const top = document.documentElem 阅读全文
posted @ 2019-10-25 10:08 溪风0509 阅读(1744) 评论(0) 推荐(0)