fkjj.net
当前位置:首页 >> 请问js中 DoCumEnt.DoCumEntElEmEnt.sCrollTop DoC... >>

请问js中 DoCumEnt.DoCumEntElEmEnt.sCrollTop DoC...

var sTop = 0, docE = document.documentElement, docB = document.body; if(docE && docE.scrollTop) { sTop = docE.scrollTop; }else if(docB && docB.scrollTop) { sTop = docB.scrollTop; } console.log(sTop)

网站首页 | 网站地图
All rights reserved Powered by www.fkjj.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com