test.html通过一普通链接打开test2.html页面
子页面 通过document.referrer获得父页面链接 是如下的样子
http://127.0.0.1/025/test_js[color=red]/[/color]test.html
或
http://127.0.0.1/025[color=red]/[/color]test.html
请问 在子页面上如何 通过js获得上面链接红色部分前面的地址,包含[color=red]//color
document.write(document.referrer.split('/')[4])不行