1
有在HTML中的iframe:爲什麼我放棄了iframe的src?
<iframe id="iframeViewer3D" width="340" height="210" scrolling="no" src="/global/viewer.aspx?mode=3DWebGL&xmp=-1-59-flexible_shaft_coupling_c172903000300.xmp&previewCad=flexible_shaft_coupling_c172903000300&h=210&w=340&version=3&Lang=en&fwsid=3DCC&CF=0&PMLOG=1&DisplayMode=small&manId=ACCES"></iframe>
當我試圖讓這個iframe的與casperjs一個HTML:
var link = casper.getHTML('#iframeViewer3D', true);
它返回的HTML的一部分,而不SRC:
<iframe id=\"iframeViewer3D\" width=\"340\" height=\"210\" scrolling=\"no\"></iframe>
爲什麼src丟失以及如何獲取此src?我想這是因爲鏈接利茲到anoteher域
謝謝,但我的目標是簡單地得到帶有src的iframe標籤,沒有導航到「iframe」。 – ZaurK
對不起,小姐明白了,並更新了我的帖子。 – dasmelch
在這種情況下,我得到「null」,也許這個鏈接會導致另一個域... – ZaurK