2014-09-30 46 views
0

我使用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

回答

0

你需要細分 '後' 添加到您的飼料可變

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