firefox onscroll 事件
关于firefox onscroll 事件。
今天要一个demo要用到onscroll, google了几下, 基本都是说firefox只支持window.onscroll,
查阅了firefox官方网站得知, firefox是支持Document
,Element的。
https://developer.mozilla.org/en/DOM/element.onscroll
但是我使用element.addEventListener('scroll', function(){alert(1);}, false); 后, firefox死活不认识scroll,
后来一生气把false改成true后,奇迹般识得scroll了。。至于是什么原因还不知道。。但是目前能用就行了。。^_^
优质内容筛选与推荐>>