我有一些带有各种hrefs的链接,并希望获得此值的最终网址,例如:
http://localhost/ -> http://localhost/
localhost -> http://mysite.example/localhost
firstpage -> http://mysite.example/firstpage
/anotherpage -> http://mysite.example/anotherpage
#anchor1 -> http://mysite.example/currentpage#anchor1
/#anchor2 -> http://mysite.example/#anchor2
顺便说一句,我不想要点击处理的代码。我能做到。