Instafeed js,div 渲染 instafeed
Instafeed js, which div to render instafeed
大家好,我目前正在与 instafeed.js
合作,我正在尝试弄清楚是否可以确定应该在哪个 div
中渲染图像:
现在我只使用标准 <div id="instafeed"></div>
,但我希望能够执行以下操作:
<div id="instafeed-1">Instagram feed with a specific tag</div>
<div id="instafeed-2">Instagram feed with a specific user</div>
<div id="instafeed-3">Instagram feed with a different configuration</div>
您可以使用 target 选项指定另一个 ID。例如:
var feed = new Instafeed({
target: 'instafeed-1',
get: 'tagged',
tagName: 'awesome',
clientId: 'YOUR_CLIENT_ID'
});
feed.run();
更多选项请参考文档:https://github.com/stevenschobert/instafeed.js/blob/master/README.md#standard-options
大家好,我目前正在与 instafeed.js
合作,我正在尝试弄清楚是否可以确定应该在哪个 div
中渲染图像:
现在我只使用标准 <div id="instafeed"></div>
,但我希望能够执行以下操作:
<div id="instafeed-1">Instagram feed with a specific tag</div>
<div id="instafeed-2">Instagram feed with a specific user</div>
<div id="instafeed-3">Instagram feed with a different configuration</div>
您可以使用 target 选项指定另一个 ID。例如:
var feed = new Instafeed({
target: 'instafeed-1',
get: 'tagged',
tagName: 'awesome',
clientId: 'YOUR_CLIENT_ID'
});
feed.run();
更多选项请参考文档:https://github.com/stevenschobert/instafeed.js/blob/master/README.md#standard-options