首页
学习
活动
专区
圈层
工具
发布

发布IE11
EN

Stack Overflow用户
提问于 2014-11-04 06:49:04
回答 1查看 1.7K关注 0票数 0

我在javascript中使用getattribute,它在IE11中不起作用。下面是我的密码。

代码:-

代码语言:javascript
复制
var innerFrames = currentRow.all.tags("iframe");

if(innerFrames.length > 0)
{
  var currentFrame = innerFrames[0];
  var frmID = currentFrame.getAttribute("id");
  var ownerID = currentFrame.getAttribute("displayID");
}
var sGroupCaption = (currentFrame.getAttribute("Caption") == null) ? "" : currentFrame.getAttribute("Caption");

if (currentFrame.getAttribute("isEmpty")!= null){ }

    var Type = (currentFrame.getAttribute("displayType") == null) ? "" : currentFrame.getAttribute("displayType");

请建议我在javscript中复制这个getattribute。

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-11-04 06:56:11

您可以在这样的属性中直接访问:

  • currentFrame.myProperty
  • currentFrame"myProperty"
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26729239

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档