当我试图让contentwindow出来的iframe,利用的iFrame ContentWindow
var contentWindow = document.getElementbyId('iframe').contentWindow
有时它会返回“窗口未定义”,因为contentWindow不存在。我似乎无法使用
if (contentWindow === unidentified) or if (contentWindow === null)
,因为它刚出来的代码的错误,如果我试图抓住值出它来运行它的检查。有没有人遇到这个问题并找出解决方案?
`身份不明`让我微笑:)我们都是初学者一次。 – 2013-04-08 08:04:37