The following (using lodash for debounce) renders the results you're expecting in IE11:(function () { "use strict"; var debounced = _.debounce(function () { if ($win.scrollTop() >= $doc.height() - $win.height()) { // AJAX here } }, 250); var $doc = $(document), $win = $(window).on("scroll", debounced);}());您可以在此处在线进行测试: http://jsfiddle.net/jonathansampson/74cTx/You can test this online here: http://jsfiddle.net/jonathansampson/74cTx/如果您仍然遇到问题,我将使用您的getFeeds方法来确定它是否按预期运行.如果您在此处共享实施方式,我们将很乐意为您提供帮助,以进一步解决问题.If you continue to have issues, I would look to your getFeeds method to determine whether it is working as you expect it to or not. If you share the implementation here, we'd be happy to assist you in resolving the issue further. 这篇关于$(window).scroll不适用于IE11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-13 13:27