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属性和方法啊?这里为什么可以这样用呢?并且获得的是什么呢?