📜  javascript 获取滚动位置 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:22.336000             🧑  作者: Mango

代码示例2
document.documentElement.scrollTop = document.body.scrollTop = 1200;
document.documentElement.scrollLeft = document.body.scrollLeft = 600;Code language: JavaScript (javascript)