//获取iframe下的document
var doc=document.getElementById(‘mainFrame‘).contentDocument || document.frames[‘mainFrame‘].document
$(‘iframe‘).contents().find(‘selector‘)
时间: 2024-11-05 15:48:41
//获取iframe下的document
var doc=document.getElementById(‘mainFrame‘).contentDocument || document.frames[‘mainFrame‘].document
$(‘iframe‘).contents().find(‘selector‘)