PhantomJs 中获取的js渲染页面的js路径问题
<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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
网页面里面注入一段js来获取就好了
兄弟问题解决没
请问题主问题解决了吗,我也遇到了这种问题