开发者

Webkit: be notified when 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜