stu*_*man 1 html javascript jquery
如何从iframe中将div转换为JS变量?不一定要使用jQuery.
Tra*_*er1 9
document.getElementById('IframeId').contentWindow.document.getElementById('DivId');
Gre*_*ell 9
在jQuery语法中,那就是$('iframe').contents().find('div').(当然,替换你需要的任何特定的id /类/其他选择器).Tracker1的答案应该适用于标准Javascript.
$('iframe').contents().find('div')
归档时间:
16 年,4 月 前
查看次数:
263 次
最近记录: