Javascript 从Instagram图像馈送中删除链接

Javascript 从Instagram图像馈送中删除链接,javascript,instagram,Javascript,Instagram,我正在使用一些JavaScript来拉入我的Instagram提要,但我想删除每个图像的链接,这些链接将它们带到Instagram上的页面。我尝试了几次,但最终还是失败了,有人知道我应该删除什么吗 embedImage = function(photo) { var a, img; img = $('<img/>').attr({ //'src': photo.images.thumbnail.url, //'width': photo.images.thumbnail.w

我正在使用一些JavaScript来拉入我的Instagram提要,但我想删除每个图像的链接,这些链接将它们带到Instagram上的页面。我尝试了几次,但最终还是失败了,有人知道我应该删除什么吗

 embedImage = function(photo) {
var a, img;
img = $('<img/>').attr({
  //'src': photo.images.thumbnail.url,
  //'width': photo.images.thumbnail.width,
  //'height': photo.images.thumbnail.height
  'src': photo.images.standard_resolution.url,
  'width': photo.images.standard_resolution.width,
  'height': photo.images.standard_resolution.height
});
a = $('<a />').attr({
  'href': photo.images.standard_resolution.url,
  'target': '_blank',
  'class': 'pull-left'
}).append(img).appendTo(tag_name);
 };

onPhotoLoaded = function(data) {
var photo, _i, _len, _ref, _results;
if (data.meta.code === 200 && data.data) {
  _ref = data.data;
  _results = [];
  for (_i = 0, _len = _ref.length; _i < _len; _i++) {
    photo = _ref[_i];
    _results.push(embedImage(photo));
  }
  return _results;
}
};
embedImage=函数(照片){
var a,img;
img=$('').attr({
“href”:photo.images.standard_resolution.url,
'目标':'空白',
“类”:“向左拉”
}).append(img).appendTo(标签名称);
};
onPhotoLoaded=函数(数据){
var photo,_i,_len,_ref,_结果;
if(data.meta.code==200&&data.data){
_ref=data.data;
_结果=[];
对于(_i=0,_len=_ref.length;_i<_len;_i++){
照片=_ref[_i];
_结果:推送(嵌入图像(照片));
}
返回结果;
}
};

删除除类之外创建的
标记上的所有属性