开发者

Webkit: be notified when document.body.scrollHeight changes

开发者 https://www.devze.com 2023-02-14 03:32 出处:网络
Is there a way to be notified w开发者_StackOverflow中文版hen document.body.scrollHeight changes ?

Is there a way to be notified w开发者_StackOverflow中文版hen document.body.scrollHeight changes ? I know that I could set an interval to check it every 100ms but i'am looking for a cleaner solution. I'm targetting mobile webkit browsers only. So I don't care about other browsers.


Um, yes, onresize (for the window, but still..) unless there is more than meets the eye to your question? There are problems on iPhone though, but onscroll seems to fire instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消