iframe javascript:location.replace(url)路径问题
JScript code<div class="collapsed"><span>测试菜单</span> <b><a target="iFrameMain" href="javascript:document.location.replace('web/a.html')">a.html</a></b> <b><a target="iFrameMain" href="javascript:document.location.replace('web/b.html')">b.html</a></b></div><iframe id="iFrameMain" name="iFrameMain" scrolling="auto" src="" frameborder="0" ></iframe>
a href 路径会重叠(web/web/a.html)
这个怎么处理。
------解决方案--------------------
javascript:document.location.replace('a.html')
不要前缀不行?
查询谷 - www.chaxungu.com
iframe javascript:location.replace(url)路径有关问题
编辑:chaxungu时间:2022-10-02 23:15:53分类:web开发