<body id="scrollContent" class="body h-full overflow-y-auto">
</body>
<script>
window.onload = function() {
let height = document.getElementById('scrollContent').scrollHeight;
window.scrollTo({top:height, left:0, behavior:'smooth'})
// 如果是在某一区域内滚动(不是body范围,div设置了最大高度 超出部分滚动)
// document.getElementById('divIdName').scrollTo({top:height, left:0, behavior:'smooth'})
}
</script>