iframe1.document.designMode="On";
iframe1.document.open();
iframe1.document.write(designMode);
iframe1.document.close();这样是对的,你那样是错误的是因为designMode="On",一次做不完,也就是你
iframe1.document.body.innerHTML = 'abc';的时候,body还没有生成呢
可以改成:
setTimeout("iframe1.document.body.innerHTML = 'abc';",50)
iframe1.document.open();
iframe1.document.write(designMode);
iframe1.document.close();这样是对的,你那样是错误的是因为designMode="On",一次做不完,也就是你
iframe1.document.body.innerHTML = 'abc';的时候,body还没有生成呢
可以改成:
setTimeout("iframe1.document.body.innerHTML = 'abc';",50)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货