document.insertScript = function (){
if (document.createIFrame==null){ //这里不明白
createIFrame = function (frameID)
{
var bodyID = document.getElementsByTagName(\"body\")[0];
var newDiv = document.createElement('div');
newDiv.id = frameID;
newDiv.style.position ='absolute';
newDiv.style.backgroundColor = 'transparent';
newDiv.style.border = '0px';
newDiv.style.visibility = 'hidden';
bodyID.appendChild(newDiv);
}
}
}上面代码关于document的使用这里,document对象没有createIFrame属性和方法啊?这里为什么可以这样用呢?并且获得的是什么呢?
if (document.createIFrame==null){ //这里不明白
createIFrame = function (frameID)
{
var bodyID = document.getElementsByTagName(\"body\")[0];
var newDiv = document.createElement('div');
newDiv.id = frameID;
newDiv.style.position ='absolute';
newDiv.style.backgroundColor = 'transparent';
newDiv.style.border = '0px';
newDiv.style.visibility = 'hidden';
bodyID.appendChild(newDiv);
}
}
}上面代码关于document的使用这里,document对象没有createIFrame属性和方法啊?这里为什么可以这样用呢?并且获得的是什么呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货