5. documentElement 、 window.scrollY 、 window.pageYOffset

IE下会分quick mode， standard mode两种，

quick mode下

For cross-browser compatibility, use window.pageYOffset instead of window.scrollY.Additionally, older versions of Internet Explorer (< 9) do not support either property and must be worked around by checking other non-standard properties. A fully compatible example: