08 2013 档案

iframe中插入代码并执行
摘要:最近有需求通过iframe插入代码。有蛮多方法,如下:1 var iframe = document.getElementById('previewUrl');2 iframe.src = 'about:blank';3 iframe.contentWindow.document.body.innerHTML+="12312"4 iframe.contentWindow.document.close();试了下,如下代码也可以:iframe.contentWindow.document.getElementsByTagName('ht 阅读全文

posted @ 2013-08-01 20:49 洞庭啸月 阅读(2047) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

点击右上角即可分享
微信分享提示