直接上代码吧... var i=0; var time; function test(str) { i++; document.getElementById('tgb').contentWindow.document.getElementById('veditor1_Iframe').contentWindow.document.getElementsByTagName ('div') [0].innerHTML = str+i; document.getElementById('tgb').c…