<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <!-- saved from url=(0050)http://www.pmob.co.uk/temp/fixedlayoutexample5.htm --> <HTML xmlns=&qu…
div产生的滚动条返回顶部 1.获取div js: let initialNode = document.getElementById("content") react: let initialNode = ReactDOM.findDOMNode(this.refs.content); 2.返回顶部 function backTop(){ window.setInterval(function() { let pos = initialNode.scrollTop; if ( pos…