如何使用jQuery访问iframe的内容?我试着这样做,但它不会工作:如何使用jQuery访问iframe的内容?
iframe中的内容:<div id="myContent"></div>
的jQuery:$("#myiframe").find("#myContent")
如何我可以访问myContent
?
Similar tojquery/javascript: accessing contents of an iframe but the accepted answer is not what I was looking for.
我刚刚发现Firefox控制台中的内置$变量看起来不像完整的jQuery。 (我意识到我没有jQuery变量,然后发现我没有加载jQuery的源代码)。 –