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