PhantomJs 中获取的js渲染页面的js路径问题

发布于 2022-09-06 19:51:47 字数 5477 浏览 17 评论 0

<link class="component" href="/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/basic_both.xcss/DATB/eAH71N79M3T5DGkAF!wErQ__.xhtml" rel="stylesheet" type="text/css"><link class="component" href="/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/extended_both.xcss/DATB/eAH71N79M3T5DGkAF!wErQ__.xhtml" media="rich-extended-skinning" rel="stylesheet" type="text/css"><script src="/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.AjaxScript.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalcom/regaltec/renderkit/html/scripts/ext-base.js.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalcom/regaltec/renderkit/html/scripts/ext-all.js.xhtml" type="text/javascript"></script><link class="component" href="/a4j/s/3_3_3.Finalcom/regaltec/renderkit/html/css/richfacesStyle.xcss/DATB/eAH71N79M3T5DGkAF!wErQ__.xhtml" rel="stylesheet" type="text/css"><link class="component" href="/a4j/g/3_3_3.Finalcom/regaltec/renderkit/html/css/ext-all.css.xhtml" rel="stylesheet" type="text/css"><script src="/a4j/g/3_3_3.Finalcom/regaltec/renderkit/html/scripts/TabCloseMenu.js.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalcom/regaltec/renderkit/html/scripts/portal/Portal.js.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalcom/regaltec/renderkit/html/scripts/portal/PortalColumn.js.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalcom/regaltec/renderkit/html/scripts/portal/Portlet.js.xhtml" type="text/javascript"></script><link class="component" href="/a4j/g/3_3_3.Finalcom/regaltec/renderkit/html/css/portal/portal.css.xhtml" rel="stylesheet" type="text/css"><script src="/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.PrototypeScript.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalorg.ajax4jsf.javascript.ImageCacheScript.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/browser_info.js.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalorg/ajax4jsf/javascript/scripts/form.js.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalscripts/tabPanel.js.xhtml" type="text/javascript"></script><link class="component" href="/a4j/s/3_3_3.Finalcss/tabPanel.xcss/DATB/eAH71N79M3T5DGkAF!wErQ__.xhtml" rel="stylesheet" type="text/css"><script src="/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/utils.js.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/modalPanel.js.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/modalPanelBorders.js.xhtml" type="text/javascript"></script><link class="component" href="/a4j/s/3_3_3.Finalorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAH71N79M3T5DGkAF!wErQ__.xhtml" rel="stylesheet" type="text/css"><script src="/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/sortTableByColumn.js.xhtml" type="text/javascript"></script><link class="component" href="/a4j/s/3_3_3.Finalcss/table.xcss/DATB/eAH71N79M3T5DGkAF!wErQ__.xhtml" rel="stylesheet" type="text/css"><script src="/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/datascroller.js.xhtml" type="text/javascript"></script><link class="component" href="/a4j/s/3_3_3.Finalcss/datascroller.xcss/DATB/eAH71N79M3T5DGkAF!wErQ__.xhtml" rel="stylesheet" type="text/css"><script src="/a4j/g/3_3_3.Finalcom/regaltec/renderkit/html/scripts/dhtmlXCommon.js.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalcom/regaltec/renderkit/html/scripts/dhtmlXTree.js.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalcom/regaltec/renderkit/html/scripts/dhtmlxTree_dragIn.js.xhtml" type="text/javascript"></script><link class="component" href="/a4j/g/3_3_3.Finalcom/regaltec/renderkit/html/css/dhtmlXTree.css.xhtml" rel="stylesheet" type="text/css"><script src="/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/available.js.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/jquery/jquery.js.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/script/controlUtils.js.xhtml" type="text/javascript"></script><script src="/a4j/g/3_3_3.Finalcom/regaltec/renderkit/html/scripts/dictionary/dictionary.js.xhtml" type="text/javascript"></script><script type="text/javascript">window.RICH_FACES_EXTENDED_SKINNING_ON=true;</script><script src="/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/skinning.js.xhtml" 

获取的代码如上都是相对路径,导致js都无法执行,请问PhantomJs 需要怎么设置正确的请求路径

图片描述

我的网站访问地址是 http://itower.manbutech.top/ PhantomJs出来的页面都是索引到了http://itower.manbutech.top/... http://222.85.25.140/
目标网站的地址是 http://222.85.25.140/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

美煞众生 2022-09-13 19:51:47

网页面里面注入一段js来获取就好了

瀟灑尐姊 2022-09-13 19:51:47

兄弟问题解决没

我喜欢麦丽素 2022-09-13 19:51:47

请问题主问题解决了吗,我也遇到了这种问题

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文