如何使用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的源代碼)。 –