最佳答案
我似乎无法在 iPad 上捕捉滚动事件。 这些都不管用,我做错了什么?
window.onscroll=myFunction;
document.onscroll=myFunction;
window.attachEvent("scroll",myFunction,false);
document.attachEvent("scroll",myFunction,false);
They all work even on Safari 3 on Windows.
Ironically, EVERY browser on the PC supports window.onload=
if you don't mind clobbering existing events. But no go on iPad.