jquery contents方法 获取iframe元素

jquery的contents()访求可以获取iframe里面的元素,如

<iframe id="test" src="test.jsp"></iframe>

$("#test").contents().find("#testI");这句话的作用就是能够得到test.jsp里面的id为testI的节点

原文地址:https://www.cnblogs.com/popping57/p/3369971.html