js w頁面返回頂部失效

須要同時設置兩個屬性, 否則對某些機型不支持。markdown

document.body.scrollTop = document.documentElement.scrollTop = 0;
複製代碼
相關文章
相關標籤/搜索