我instafeed.js
用来获取最新的 instagram 帖子,我需要id
为每个列表项生成一个。我怎样才能做到这一点?
JS:
var feed = new Instafeed({
clientId: '<id>', //enter client id here
limit: 5,
sortBy: 'most-liked',
//<div class="likes">♥ {{likes}}</div> ************************* likes count
template: '<li><a href="{{link}}" target="_blank"><img class="img-responsive img-circle center-block" src="{{image}}"></li>'
});
feed.run();
HTML:
<ul id="instafeed"></ul>