window和document的區(qū)別?
window就是瀏覽器窗口,可以省略
document是html文檔是window的一部分
location是window.location對象用于獲得當(dāng)前頁面的地址 (URL),并把瀏覽器重定向到新的頁面层扶。WindowLocationwindow.location對象在編寫時可不使用 window 這個前綴
window.innerHeight:內(nèi)部高度可市區(qū)高度
window.outerHeight
window.screen.height:
window.scrollTop:瀏覽器距離頂部的寬度
availWidth 可利用的高度