Instafeed插件加载更多按钮不工作

问题描述:

我使用instafeed js插件并尝试使用加载更多按钮,但它不起作用。我在这里看到了一篇关于同样问题的帖子,但对不起仍然不适合我。任何帮助?谢谢Instafeed插件加载更多按钮不工作

这里是我的代码

  var feed = new Instafeed({ 
     get: 'user', 
     userId: 300087, 
     accessToken: '300087.467ede5.6af355f8b6c048b2bbfc6772ab918cf9', 
     link: 'true', 
     resolution: 'standard_resolution', 
     limit: '20' 
     }); 

     // call feed.next() on button click 
     $('#load-more').on('click', function() { 
     feed.next(); 
     }); 

     // run our feed! 
     feed.run(); 

,并在HTML页面

  <a id="load-more">load more</a> 
+1

哪个岗位你看到吗? – 2014-09-30 15:30:01

+0

这个http://stackoverflow.com/questions/25760591/trying-to-get-a-load-more-button-working-on-an-instagram-instafeed-script-but-it – Xavi 2014-09-30 16:04:58

你需要细分 '后' 添加到您的饲料可变

after: function() { 
    if (!this.hasNext()) { 
     moreButton.hide(); 
    } 
}