欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  web前端

phantomjs iframe 访问元素_html/css_WEB-ITnose

程序员文章站 2024-01-15 10:13:04
...
执行参数:phantomjs --web-security=no xxx.jsvar content = page.evaluate(function() {    return $("iframe:first").contents().find("#ptlogin_iframe").contents().find("#switcher_plogin").html();});