Fork me on GitHub
摘要: jquery取得iframe中元素的几种方法在iframe子页面获取父页面元素代码如下:$('#objId', parent.document);// 搞定...在父页面 获取iframe子页面的元素代码如下:$("#objid",document.frames('iframename').document)$(document.getElementById('iframeId').contentWindow.document.body).html()显示iframe中body元素的内容。$("#testId&quo 阅读全文
posted @ 2012-04-01 11:09 磊哥|www.javacn.site 阅读(12237) 评论(0) 推荐(0) 编辑