$(window).resize(function(){
setTimeout(() => {
document.body.scrollTop = document.documentElement.scrollTop = document.body.scrollHeight;
}, 10);
})
用$(window).resize来判断窗口是否变化
$(window).resize(function(){
setTimeout(() => {
document.body.scrollTop = document.documentElement.scrollTop = document.body.scrollHeight;
}, 10);
})
用$(window).resize来判断窗口是否变化